Fix valid yaml parsing error and conditionally propagate 'with_credentials' flag to the tenant client #88
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
name: test action | |
on: | |
push: | |
branches: | |
- master | |
- dev | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./ | |
id: cac | |
with: | |
args: --help | |
- run: echo -e "${{ steps.cac.outputs.result }}" | |
name: print action output | |
negative-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./ | |
id: cac | |
with: | |
args: pull --invalid | |
continue-on-error: true | |
- if: steps.cac.outcome == 'success' | |
name: fail on cac success | |
run: exit 1 | |
- if: steps.cac.outcome == 'failure' | |
run: echo "cac failed as expected" |