Handle plan preview workflow's error and exit with error status code #2368
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: gen | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
code: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Generate code | |
uses: docker://ghcr.io/pipe-cd/codegen@sha256:fc3db505ef8dbf287b90aafed8c28246d2cca06bda2b43893a3059719fe9fff4 #v0.44.0-38-g7229285 | |
with: | |
entrypoint: ./tool/codegen/codegen.sh | |
args: /github/workspace | |
- name: Show Git status | |
shell: bash | |
run: git status | |
- name: Validate | |
shell: bash | |
run: test -z "$(git status --porcelain)" |