Skip to content

Commit

Permalink
Fix workflow in Actions 'Introductions' article (github#8141)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascosti authored Jul 14, 2021
1 parent b991c3c commit 47076c4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Binary file modified assets/images/help/images/overview-actions-event.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ You can create an example workflow in your repository that automatically trigger
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm install -g bats
- run: bats -v
```
Expand Down Expand Up @@ -171,10 +173,12 @@ To help you understand how YAML syntax is used to create a workflow file, this s
```yaml
- uses: actions/setup-node@v2
with:
node-version: '14'
```
</td>
<td>
This action installs the <code>node</code> software package on the runner, giving you access to the <code>npm</code> command.
This step uses the <code>actions/setup-node@v2</code> action to install the specified version of the <code>node</code> software package on the runner, which gives you access to the <code>npm</code> command.
</td>
</tr>
<tr>
Expand Down
10 changes: 5 additions & 5 deletions content/actions/reference/workflow-syntax-for-github-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -640,15 +640,15 @@ Actions are either JavaScript files or Docker containers. If the action you're u
### Example: Using versioned actions

```yaml
steps:
steps:
# Reference a specific commit
- uses: actions/setup-node@c46424eee26de4078d34105d3de3cc4992202b1e
- uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
# Reference the major version of a release
- uses: actions/setup-node@v2
- uses: actions/checkout@v2
# Reference a specific version
- uses: actions/setup-node@v2.2.0
- uses: actions/checkout@v2.2.0
# Reference a branch
- uses: actions/setup-node@main
- uses: actions/checkout@main
```

### Example: Using a public action
Expand Down

0 comments on commit 47076c4

Please sign in to comment.