From f0ed431dedbd5bc2cdca573a93673370b139c4f2 Mon Sep 17 00:00:00 2001 From: John Haynes Date: Sun, 28 Apr 2024 22:47:02 -0600 Subject: [PATCH] Fetch tags and confirm release ref --- .github/workflows/linux-release.yml | 5 ++++- .github/workflows/macos-release.yml | 5 ++++- .github/workflows/windows-release.yml | 6 +++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux-release.yml b/.github/workflows/linux-release.yml index cddf46b1d..9aed2c2eb 100644 --- a/.github/workflows/linux-release.yml +++ b/.github/workflows/linux-release.yml @@ -1,3 +1,4 @@ +name: Linux Release on: repository_dispatch: types: [release-published] @@ -8,7 +9,9 @@ jobs: steps: - name: "Checkout code" uses: actions/checkout@v4 + with: + fetch-tags: true - name: linux-releaes run: | echo "Linux Release call ${{github.ref_name}}" - git describe --tags + git describe --tags ${{ event.client_payload.ref_name }} diff --git a/.github/workflows/macos-release.yml b/.github/workflows/macos-release.yml index 5a21a6625..5d0ea2758 100644 --- a/.github/workflows/macos-release.yml +++ b/.github/workflows/macos-release.yml @@ -1,3 +1,4 @@ +name: MacOS Release on: repository_dispatch: types: [release-published] @@ -8,7 +9,9 @@ jobs: steps: - name: "Checkout code" uses: actions/checkout@v4 + with: + fetch-tags: true - id: macos-releaes run: | echo "macOS Release call ${{github.ref_name}}" - git describe --tags + git describe --tags ${{ event.client_payload.ref_name }} diff --git a/.github/workflows/windows-release.yml b/.github/workflows/windows-release.yml index 10c6a0253..5fe270844 100644 --- a/.github/workflows/windows-release.yml +++ b/.github/workflows/windows-release.yml @@ -1,3 +1,4 @@ +name: Windows Release on: repository_dispatch: types: [release-published] @@ -8,7 +9,10 @@ jobs: steps: - name: "Checkout code" uses: actions/checkout@v4 + with: + fetch-tags: true + - id: windows-release run: | echo "Windows Release call ${{github.ref_name}}" - git describe --tags + git describe --tags ${{ event.client_payload.ref_name }}