-
Notifications
You must be signed in to change notification settings - Fork 45
42 lines (33 loc) · 1.18 KB
/
test_failure_organization_not_installed.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Tests this action failure by the application not being installed on the organization
name: Test Failure - organization - not installed
on:
push:
workflow_dispatch:
jobs:
test_failure:
runs-on: ubuntu-latest
continue-on-error: true
outputs:
action_step_outcome: ${{ steps.use_action.outcome }}
action_step_conclusion: ${{ steps.use_action.conclusion }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use action
id: use_action
uses: ./
with:
application_id: ${{ secrets.APPLICATION_ID_NOT_INSTALLED }}
application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY_NOT_INSTALLED }}
organization: devopsventures
validate_results:
needs: test_failure
runs-on: ubuntu-latest
steps:
- name: Validate failure
if: needs.test_failure.outputs.action_step_outcome != 'failure'
run: |
echo "Outcome: ${{ needs.test_failure.outputs.action_step_outcome }}"
echo "Conclusion: ${{ needs.test_failure.outputs.action_step_conclusion }}"
echo "Outcome should have been failure for an application that is not installed."
exit 1