From 009c1101d2383ff0e354eac413cebe790c01a89c Mon Sep 17 00:00:00 2001 From: Andrew Glaze Date: Wed, 22 Mar 2023 08:17:28 -0400 Subject: [PATCH] CI: add a version tag to correlate release versions with commits (#4572) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add step to tag commit with release version * add step to tag commit with release version * Rename step to “Create Tag” * Fix name --- .github/workflows/release.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b2c5e2f0..88eb5527 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -112,6 +112,17 @@ jobs: repo: ${{ env.RYUJINX_TARGET_RELEASE_CHANNEL_REPO }} token: ${{ secrets.RELEASE_TOKEN }} + - name: Create tag + uses: actions/github-script@v5 + with: + script: | + github.rest.git.createRef({ + owner: context.repo.owner, + repo: context.repo.repo, + ref: 'refs/tags/${{ steps.version_info.outputs.build_version }}', + sha: context.sha + }) + flatpak_release: uses: ./.github/workflows/flatpak.yml needs: release