Skip to content

Commit

Permalink
fix: trigger outputs (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Apr 19, 2024
1 parent 42a8cc8 commit ddda3cb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/.deployer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
environment: ${{ inputs.environment }}
runs-on: ubuntu-22.04
outputs:
tag: ${{ steps.triggers.outputs.triggered }}
triggered: ${{ steps.triggers.outputs.triggered }}
steps:
### Triggers, tag and release

Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,17 @@ jobs:
secrets:
oc_namespace: ${{ secrets.oc_namespace }}
oc_token: ${{ secrets.oc_token }}

results:
name: Results
needs: [deploys]
runs-on: ubuntu-22.04
steps:
- if: needs.deploys.outputs.triggered == 'true'
run: echo "Success!"

- if: needs.deploys.outputs.triggered != 'true'
run: |
# Handle fail
echo "needs.deploys == ${{ toJson(needs.deploys) }}"
exit 1

0 comments on commit ddda3cb

Please sign in to comment.