Skip to content

Commit

Permalink
Update tag-and-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
georgepstaylor committed Nov 11, 2024
1 parent fec096d commit 16a1986
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/tag-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 16a1986

Please sign in to comment.