2023-12-04 21:16:43 +00:00
|
|
|
name: Update metainfo on release
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types:
|
|
|
|
- published
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json
|
|
|
|
|
2023-12-09 13:34:04 +00:00
|
|
|
- name: Use Node.js 18.18.2
|
2023-12-04 21:16:43 +00:00
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
2023-12-09 13:34:04 +00:00
|
|
|
node-version: 18.18.2
|
2023-12-04 21:16:43 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pnpm i
|
|
|
|
|
|
|
|
- name: Update metainfo
|
|
|
|
run: pnpm updateMeta
|
|
|
|
|
2023-12-04 21:28:34 +00:00
|
|
|
- name: Commit and merge in changes
|
2023-12-04 21:16:43 +00:00
|
|
|
run: |
|
|
|
|
git config user.name "github-actions[bot]"
|
|
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
2023-12-04 21:28:34 +00:00
|
|
|
git checkout -b ci/meta-update
|
2023-12-04 21:16:43 +00:00
|
|
|
git add meta/dev.vencord.Vesktop.metainfo.xml
|
2023-12-04 21:41:01 +00:00
|
|
|
git commit -m "Insert release changes for ${{ github.event.release.tag_name }}"
|
2023-12-04 21:33:30 +00:00
|
|
|
git push origin ci/meta-update
|
2023-12-04 22:35:29 +00:00
|
|
|
gh pr create -B main -H ci/meta-update -t "Metainfo for ${{ github.event.release.tag_name }}" -b "This PR updates the metainfo for release ${{ github.event.release.tag_name }}. @lewisakura @Vendicated"
|
2023-12-04 21:28:34 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|