From d4ac46202edf8146415fe4fa920579b7ce0c8bae Mon Sep 17 00:00:00 2001 From: Sam Richard Date: Wed, 7 Aug 2024 19:06:15 -0400 Subject: [PATCH] Get all tags --- .github/workflows/build-release.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 42782c2..86990c0 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -38,8 +38,14 @@ jobs: KEY: ${{ secrets.KEY }} KEY_PASSPHRASE: ${{ secrets.KEY_PASSPHRASE }} VERSION: ${{ steps.tag_version.outputs.new_tag }} - - name: Check the tags - run: cat update.json + - name: Get all tags + uses: octokit/request-action@v2.x + id: get_latest_release + with: + route: GET /repos/${{ github.repository }}/git/matching-refs/tags + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: "echo latest release: '${{ steps.get_latest_release.outputs.data }}'" - name: Upload SWBN uses: actions/upload-artifact@v4 with: