mirror of
https://github.com/smartfrigde/armcord.git
synced 2026-06-23 05:25:43 +00:00
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
name: Update metainfo on release
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- published
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
update:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4 # Install pnpm using packageManager key in package.json
|
|
|
|
- name: Use Node.js 22
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: package.json
|
|
cache: pnpm
|
|
|
|
- name: Install dependencies
|
|
run: pnpm i
|
|
|
|
- name: Update metainfo
|
|
run: pnpm updateMeta
|
|
|
|
- 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/app.legcord.Legcord.metainfo.xml
|
|
|
|
git add meta/app.legcord.Legcord.metainfo.xml
|
|
git commit -m "metainfo: add entry for ${{ github.event.release.tag_name }}"
|
|
git push origin HEAD:dev
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|