diff --git a/.github/workflows/tag-and-release.yml b/.github/workflows/tag-and-release.yml index 013b152..8821225 100644 --- a/.github/workflows/tag-and-release.yml +++ b/.github/workflows/tag-and-release.yml @@ -16,7 +16,9 @@ on: - ".github/**" jobs: - build: + release: + outputs: + tag: ${{ steps.tag.outputs.new_tag }} if: github.event.pull_request.merged == true runs-on: ubuntu-22.04 permissions: @@ -58,8 +60,10 @@ jobs: run: | gh release create ${{ steps.tag.outputs.new_tag }} --title "Release ${{ steps.tag.outputs.new_tag }}" --generate-notes --verify-tag - - name: Trigger build from tag - if: steps.release_type.outputs.PRERELEASE == 'false' - uses: ./.github/workflows/image-build.yml - with: - tag: ${{ steps.tag.outputs.new_tag }} + trigger_build: + needs: release + if: steps.release_type.outputs.PRERELEASE == 'false' + uses: ./.github/workflows/image-build.yml + with: + tag: ${{ needs.release.outputs.tag }} + secrets: inherit