Run of the complex workflow #3
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: Simple Workflow | |
run-name: Run of the complex workflow | |
on: | |
# Workflow run trigger events | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
# Manually trigger workflow run | |
workflow_dispatch: | |
jobs: | |
# First job | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# By default, the runner will use Bash on Linux/MacOS runners | |
# Bash is supported on all runner types | |
- name: Run a one-line script | |
run: echo Hello, world! | |
- name: Run a multi-line script | |
run: | | |
echo Add other actions to build, | |
echo test, and deploy your project | |
test: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
- name: display | |
run: node -e "console.log('running from node!')" | |