Skip to content

Commit

Permalink
merge: #4033
Browse files Browse the repository at this point in the history
4033: fix: inputs for workflow_call are available in a different context r=sprutton1 a=sprutton1

Apparently `workflow_call` requires the `inputs` context instead of the `github.event.inputs` context. Luckily, this context works for both types.

https://github.blog/changelog/2022-06-10-github-actions-inputs-unified-across-manual-and-reusable-workflows/

Co-authored-by: Scott Prutton <[email protected]>
  • Loading branch information
si-bors-ng[bot] and sprutton1 authored Jun 24, 2024
2 parents b4a274d + 29aecf8 commit 02d42b4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/deploy-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,33 +53,33 @@ jobs:

deploy-service:
needs: invalidate-cache
if: ${{ github.event.inputs.service != 'all' }}
if: ${{ inputs.service != 'all' }}
uses: ./.github/workflows/deploy-service.yml
with:
environment: ${{ github.event.inputs.environment }}
service: ${{ github.event.inputs.service }}
version: ${{ github.event.inputs.version }}
environment: ${{ inputs.environment }}
service: ${{ inputs.service }}
version: ${{ inputs.version }}
secrets: inherit

deploy-services:
needs: invalidate-cache
if: ${{ github.event.inputs.service == 'all' }}
if: ${{ inputs.service == 'all' }}
strategy:
fail-fast: false
matrix:
service: ["pinga", "rebaser", "sdf", "veritech", "web"]
uses: ./.github/workflows/deploy-service.yml
with:
environment: ${{ github.event.inputs.environment }}
environment: ${{ inputs.environment }}
service: ${{ matrix.service }}
version: ${{ github.event.inputs.version }}
version: ${{ inputs.version }}
secrets: inherit

set-init:
needs: invalidate-cache
uses: ./.github/workflows/set-init-version.yml
with:
environment: ${{ github.event.inputs.environment }}
service: ${{ github.event.inputs.service }}
version: ${{ github.event.inputs.version }}
environment: ${{ inputs.environment }}
service: ${{ inputs.service }}
version: ${{ inputs.version }}
secrets: inherit

0 comments on commit 02d42b4

Please sign in to comment.