Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nakamasato authored Sep 8, 2024
1 parent 3995822 commit 1168f9e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@
|[matrix-by-condition](.github/workflows/matrix-by-condition.yml)|pull_request, push|run for dev and prod when merged to main. run only for dev for pull_request.|

## CheatSheet
- conditional `needs`: you can run `main-job` when `dependent-job` completed successfully or is skipped
```yaml
jobs:
dependent-job:
...
main-job:
needs: dependent-job
if: needs.dependent-job.result == 'success' || needs.dependent-job.result == 'skipped'`
```
- Available commands by default ([default-commands.yml](.github/workflows/default-commands.yml))
- `zip`, `aws`, `jq`, `yq`
- [gh](https://docs.github.com/en/actions/using-workflows/using-github-cli-in-workflows)
Expand Down

0 comments on commit 1168f9e

Please sign in to comment.