Skip to content

Commit ddda3cb

Browse files
authored
fix: trigger outputs (#41)
1 parent 42a8cc8 commit ddda3cb

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/.deployer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
environment: ${{ inputs.environment }}
6767
runs-on: ubuntu-22.04
6868
outputs:
69-
tag: ${{ steps.triggers.outputs.triggered }}
69+
triggered: ${{ steps.triggers.outputs.triggered }}
7070
steps:
7171
### Triggers, tag and release
7272

.github/workflows/pr-open.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,17 @@ jobs:
3939
secrets:
4040
oc_namespace: ${{ secrets.oc_namespace }}
4141
oc_token: ${{ secrets.oc_token }}
42+
43+
results:
44+
name: Results
45+
needs: [deploys]
46+
runs-on: ubuntu-22.04
47+
steps:
48+
- if: needs.deploys.outputs.triggered == 'true'
49+
run: echo "Success!"
50+
51+
- if: needs.deploys.outputs.triggered != 'true'
52+
run: |
53+
# Handle fail
54+
echo "needs.deploys == ${{ toJson(needs.deploys) }}"
55+
exit 1

0 commit comments

Comments
 (0)