Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tests this action failure by the application not being installed on the repository | |
name: Test Failure - repository - 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 }} | |
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 |