doc: update #8
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: status step | |
on: | |
workflow_dispatch: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
job: | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 3 | |
steps: | |
- run: echo "$COMMIT_MESSAGES" | |
env: | |
COMMIT_MESSAGES: ${{ toJson(github.event.commits.*.message) }} | |
- run: echo "success() run when none of previous steps have failed or been canceled" | |
if: ${{ success() }} | |
- run: echo "always() run even cancelled. it runs only when critical failure prevents the task." | |
if: ${{ always() }} | |
- run: echo "cancelled() run when Workflow cancelled." | |
if: ${{ cancelled() }} | |
- run: echo "failure() run when any previous step of a job fails." | |
if: ${{ failure() }} |