Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #223 from protocol/steps-if
Browse files Browse the repository at this point in the history
use "if:" for OS-specific additional setup steps
  • Loading branch information
marten-seemann committed Nov 17, 2021
2 parents 8747b8c + ae7718b commit e73f2af
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ runs:
run: echo "do some initial setup"
- name: Step 2
shell: bash
run: |
# note that it's not possible to use if: on the step, see https://github.com/actions/runner/issues/834
if [[ "${{ matrix.os }}" == "ubuntu" ]]; then
echo "do some Linux-specific setup"
fi
run: echo "do some Linux-specific setup"
if: ${{ matrix.os == 'ubuntu' }}
```
These setup steps are run after the repository has been checked out and after Go has been installed, but before any tests or checks are run.
Expand Down

0 comments on commit e73f2af

Please sign in to comment.