Skip to content

Update metainfo on release #3

Update metainfo on release

Update metainfo on release #3

Workflow file for this run

name: Update metainfo on release
on:
release:
types:
- published
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: pnpm i
- name: Update metainfo
run: pnpm updateMeta
- name: Commit and merge in changes
run: |
git config user.name "thororen1234"
git config user.email "78185467+thororen1234[bot]@users.noreply.github.com"
git checkout -b ci/meta-update
git add meta/com.thororen.equitop.metainfo.xml
git commit -m "Insert release changes for ${{ github.event.release.tag_name }}"
git push origin ci/meta-update --force
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 }}. @thororen1234"
env:
GITHUB_TOKEN: ${{ secrets.ETOKEN }}