Skip to content

Commit

Permalink
ci: pass needs_trapeze_artifacts to buil_release
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding committed Nov 13, 2024
1 parent acedaf8 commit b20032d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: build_release

on:
workflow_call: # for beta releases from main - release.yml / dispatch_beta_release
inputs:
needs_trapeze_artifacts:
type: boolean
required: true
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
Expand Down Expand Up @@ -61,7 +65,7 @@ jobs:
- uses: actions/checkout@v4

- name: Download bumped version artifacts
if: github.event.workflow_call
if: inputs.needs_trapeze_artifacts
uses: actions/download-artifact@v4
with:
name: trapeze-artifacts
Expand Down Expand Up @@ -116,7 +120,7 @@ jobs:
- uses: actions/checkout@v4

- name: Download bumped version artifacts
if: github.event.workflow_call
if: inputs.needs_trapeze_artifacts
uses: actions/download-artifact@v4
with:
name: trapeze-artifacts
Expand Down Expand Up @@ -168,7 +172,7 @@ jobs:
- uses: actions/checkout@v4

- name: Download bumped version artifacts
if: github.event.workflow_call
if: inputs.needs_trapeze_artifacts
uses: actions/download-artifact@v4
with:
name: trapeze-artifacts
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
app_build: ${{ steps.calculate.outputs.app_build }}

validate_version:
if: github.ref_name != 'main'
needs: app_build_number
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -88,6 +89,8 @@ jobs:
if: github.ref_name == 'main'
needs: bump_src
uses: ./.github/workflows/build_release.yml
with:
needs_trapeze_artifacts: true
permissions:
contents: write # needed for create_release, even though it won't be called

Expand Down

0 comments on commit b20032d

Please sign in to comment.