From b89779c4d4a1fc5d9f640122440d1eecc1961d53 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 18 Aug 2026 00:35:52 +0200 Subject: [PATCH] ci: switch metainfo generation to workflow_dispatch This is needed so we can start using immutable releases --- .github/workflows/meta.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/meta.yml b/.github/workflows/meta.yml index 85cae92..dd532b7 100644 --- a/.github/workflows/meta.yml +++ b/.github/workflows/meta.yml @@ -1,9 +1,6 @@ -name: Update metainfo on release +name: Upload release metainfo on: - release: - types: - - published workflow_dispatch: permissions: @@ -15,6 +12,18 @@ jobs: steps: - uses: actions/checkout@v7 + with: + fetch-depth: 0 + + - name: Get latest tag + id: latest_tag + run: | + tag=$(git tag --sort=-creatordate | head -n1) + echo "tag=$tag" >> "$GITHUB_OUTPUT" + + - name: Checkout latest tag + run: git checkout "${{ steps.latest_tag.outputs.tag }}" + - uses: pnpm/action-setup@v6 # Install pnpm using packageManager key in package.json - name: Use Node.js 24 @@ -28,11 +37,8 @@ jobs: - name: Update metainfo run: pnpm generateMeta - - name: Commit and merge in changes + - name: Upload metainfo to release 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 }}" dist/dev.vencord.Vesktop.metainfo.xml + gh release upload "${{ steps.latest_tag.outputs.tag }}" dist/dev.vencord.Vesktop.metainfo.xml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}