Vesktop/.github/workflows/meta.yml

43 lines
1.3 KiB
YAML
Raw Normal View History

2023-12-04 21:16:43 +00:00
name: Update metainfo on release
on:
release:
types:
- published
workflow_dispatch:
permissions:
contents: write
2023-12-04 21:16:43 +00:00
jobs:
update:
runs-on: ubuntu-latest
steps:
2024-07-04 17:46:41 +02:00
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4 # Install pnpm using packageManager key in package.json
2023-12-04 21:16:43 +00:00
2024-07-04 17:46:41 +02:00
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
2023-12-04 21:16:43 +00:00
2024-07-04 17:46:41 +02:00
- name: Install dependencies
run: pnpm i
2023-12-04 21:16:43 +00:00
2024-07-04 17:46:41 +02:00
- name: Update metainfo
run: pnpm updateMeta
2023-12-04 21:16:43 +00:00
2024-07-04 17:46:41 +02:00
- name: Commit and merge in changes
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
gh release upload "${{ github.event.release.tag_name }}" meta/dev.vencord.Vesktop.metainfo.xml
2024-07-04 17:46:41 +02:00
git add meta/dev.vencord.Vesktop.metainfo.xml
git commit -m "metainfo: add entry for ${{ github.event.release.tag_name }}"
git push origin main
2024-07-04 17:46:41 +02:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}