diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fa841f0..1142921 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -29,10 +29,6 @@ jobs: run: | tag="${{ github.ref_name }}" echo "release-version=${tag#v}" >> $GITHUB_ENV - - name: get_release_version -- saves to github output context - run: | - tag="${{ github.ref_name }}" - echo "release-version=${tag#v}" >> $GITHUB_OUTPUT - name: Update codemeta.json version uses: jossef/action-set-json-field@v2.1 with: @@ -60,7 +56,6 @@ jobs: git checkout ${{ github.ref_name }} git branch -D ${{ github.ref_name }}-branch # - name: Run GoReleaser - # if: ${{ success() }} # uses: goreleaser/goreleaser-action@v5 # with: # distribution: goreleaser @@ -70,9 +65,12 @@ jobs: # # need to push to cacoco/homebrew-tap; use CACOCO_TOKEN instead of default GITHUB_TOKEN # GITHUB_TOKEN: ${{ secrets.CACOCO_TOKEN }} # GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} + - name: get_release_version -- saves to github output context + run: | + tag="${{ github.ref_name }}" + echo "release-version=${tag#v}" >> $GITHUB_OUTPUT call-codemeta-version: needs: [goreleaser] - if: always() uses: ./.github/workflows/codemeta-version.yaml with: release-version: ${{ needs.goreleaser.outputs.release-version }}