metaInfo workflow: add to release and push instead of PR

This commit is contained in:
v 2025-02-08 06:20:29 +01:00 committed by GitHub
parent e6c1a03c59
commit 8938fe27b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,6 +6,9 @@ on:
- published - published
workflow_dispatch: workflow_dispatch:
permissions:
contents: write
jobs: jobs:
update: update:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -29,10 +32,11 @@ jobs:
run: | run: |
git config user.name "github-actions[bot]" git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout -b ci/meta-update
gh release upload "${{ github.event.release.tag_name }}" meta/dev.vencord.Vesktop.metainfo.xml
git add meta/dev.vencord.Vesktop.metainfo.xml git add meta/dev.vencord.Vesktop.metainfo.xml
git commit -m "Insert release changes for ${{ github.event.release.tag_name }}" git commit -m "metainfo: add entry for ${{ github.event.release.tag_name }}"
git push origin ci/meta-update git push origin main
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 }}."
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}