Skip to content

Commit

Permalink
build: Fix passing of inputs to publishing stage. (#2045)
Browse files Browse the repository at this point in the history
Co-authored-by: Tristan Youngs <[email protected]>
  • Loading branch information
trisyoungs and Tristan Youngs authored Jan 27, 2025
1 parent 0537da1 commit 7ddf477
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ on:
type: string
description: "Apptainer version to install and use"
currentVersion:
required: true
type: string
description: "Version being published"
releaseTag:
type: string
default: ''
description: "Existing tag which the release will be associated to on GitHub"
releaseName:
type: string
description: "Name of the release as it will appear on GitHub"
Expand All @@ -25,10 +30,6 @@ on:
type: string
default: ''
description: "Body file to use for body text, used in preference to releaseBody if provided"
releaseTag:
type: string
default: ''
description: "Existing tag which the release will be associated to on GitHub"
secrets:
HARBOR_USER:
description: "Username for Harbor access"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
uses: "./.github/workflows/_publish.yml"
with:
publishType: 'continuous'
currentVersion: ${{ needs.Checkout.outputs.currentVersion }}
releaseTag: 'continuous'
releaseName: "Development Release ${{ needs.Checkout.outputs.currentVersion }} @ ${{ needs.Checkout.outputs.currentShortHash }}"
releaseBodyFile: ./ChangeLog.md
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/detect_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
uses: "./.github/workflows/_publish.yml"
with:
publishType: 'release'
currentVersion: ${{ needs.Checkout.outputs.currentVersion }}
releaseTag: ${{ needs.Checkout.outputs.currentVersion }}
releaseName: "Release ${{ needs.Checkout.outputs.currentVersion }}"
releaseBody: ${{ github.event.pull_request.body }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ jobs:
uses: "./.github/workflows/_publish.yml"
with:
publishType: 'legacy'
currentVersion: ${{ needs.Checkout.outputs.currentVersion }}
apptainerVersion: ${{ needs.Checkout.outputs.apptainerVersion }}
secrets: inherit

0 comments on commit 7ddf477

Please sign in to comment.