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

Commit

Permalink
use "if:" for OS-specific additional setup steps
Browse files Browse the repository at this point in the history
GitHub Actions finally fixed the issue, see actions/runner#834 (comment).
This reverts #202.
  • Loading branch information
marten-seemann committed Nov 12, 2021
1 parent 3c96e0a commit ae7718b
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 ae7718b

Please sign in to comment.