Skip to content

Commit

Permalink
CI: Pass secrets to called workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
shoogle committed Aug 22, 2024
1 parent 76b0c77 commit fab8002
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@ jobs:
name: Backend
if: ${{ contains(inputs.platforms, 'backend') }}
uses: ./.github/workflows/build_backend.yml
secrets: inherit
with:
build_mode: ${{ inputs.build_mode }}
publish: ${{ inputs.publish }}

linux_arm:
name: Linux ARM
uses: ./.github/workflows/build_linux_arm.yml
secrets: inherit
with:
platforms: ${{ inputs.platforms }}
build_mode: ${{ inputs.build_mode }}
Expand All @@ -69,6 +71,7 @@ jobs:
name: Linux x64
if: ${{ contains(inputs.platforms, 'linux_x64') }}
uses: ./.github/workflows/build_linux.yml
secrets: inherit
with:
build_mode: ${{ inputs.build_mode }}
publish: ${{ inputs.publish }}
Expand All @@ -78,6 +81,7 @@ jobs:
name: macOS
if: ${{ contains(inputs.platforms, 'macos') }}
uses: ./.github/workflows/build_macos.yml
secrets: inherit
with:
build_mode: ${{ inputs.build_mode }}
publish: ${{ inputs.publish }}
Expand All @@ -86,6 +90,7 @@ jobs:
windows:
name: Windows
uses: ./.github/workflows/build_windows.yml
secrets: inherit
with:
platforms: ${{ inputs.platforms }}
build_mode: ${{ inputs.build_mode }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
name: Build
needs: get_tag_info
uses: ./.github/workflows/build_all.yml
secrets: inherit
with:
platforms: ${{ inputs.platforms }}
build_mode: ${{ inputs.release_type == 'stable' && 'stable' || 'testing' }}
Expand All @@ -66,6 +67,7 @@ jobs:
if: ${{ github.repository == 'musescore/MuseScore' }}
needs: build
uses: ./.github/workflows/update_learn_playlists.yml
secrets: inherit
with:
mode: ${{ inputs.create_tag && 'stable' || 'testing' }}
environment: production # requires approval
Expand Down Expand Up @@ -124,6 +126,7 @@ jobs:
- create_release
if: ${{ github.repository == 'musescore/MuseScore' && ! failure() && ! cancelled() && needs.create_release.result == 'success' }}
uses: ./.github/workflows/update_release_info.yml
secrets: inherit
with:
mode: ${{ inputs.release_type == 'stable' && 'stable' || 'testing' }}
tag: ${{ needs.get_tag_info.outputs.tag_name }}
Expand Down

0 comments on commit fab8002

Please sign in to comment.