From de2b4b7dd8cac887da8d3ec88cba36e3bced3a06 Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Mon, 4 Dec 2023 21:28:34 +0000 Subject: [PATCH] ci: create a PR to merge in metainfo automatically [skip ci] --- .github/workflows/meta.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/meta.yml b/.github/workflows/meta.yml index 3ee7562..866785c 100644 --- a/.github/workflows/meta.yml +++ b/.github/workflows/meta.yml @@ -9,8 +9,6 @@ on: jobs: update: runs-on: ubuntu-latest - permissions: - contents: write steps: - uses: actions/checkout@v3 @@ -27,10 +25,14 @@ jobs: - name: Update metainfo run: pnpm updateMeta - - name: Commit and push changes + - 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" + git checkout -b ci/meta-update git add meta/dev.vencord.Vesktop.metainfo.xml git commit -m "Insert release changes for ${{ github.event.release.tag_name }} [skip ci]" - git push \ No newline at end of file + gh pr create -B main -H ci/meta-update -t "Update metainfo for release ${{ github.event.release.tag_name }}" + gh pr merge --admin -d -r + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file