Skip to content

Commit 760dcd5

Browse files
committed
fix: improve envs
Signed-off-by: Carlos A Becker <[email protected]>
1 parent 4e0139f commit 760dcd5

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

.github/workflows/nightly.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,16 @@ jobs:
1818
runs-on: ${{ matrix.os }}
1919
env:
2020
DOCKER_CLI_EXPERIMENTAL: "enabled"
21+
flags: ""
2122
steps:
22-
- shell: bash
23-
run: |
24-
if test '${{ github.event_name }}' = "workflow_dispatch"; then
25-
echo "flags=--nightly" >> $GITHUB_ENV
26-
else
27-
echo "flags=" >> $GITHUB_ENV
28-
fi
29-
case '${{ matrix.os }}' in
30-
ubuntu-latest)
31-
echo "goos=linux" >> $GITHUB_ENV
32-
;;
33-
macos-latest)
34-
echo "goos=darwin" >> $GITHUB_ENV
35-
;;
36-
windows-latest)
37-
echo "goos=windows" >> $GITHUB_ENV
38-
;;
39-
esac
23+
- if: ${{ github.event_name == 'workflow_dispatch' }}
24+
run: echo "flags=--nightly" >> $GITHUB_ENV
25+
- if: matrix.os == 'ubuntu-latest'
26+
run: echo "goos=linux" >> $GITHUB_ENV
27+
- if: matrix.os == 'macos-latest'
28+
run: echo "goos=darwin" >> $GITHUB_ENV
29+
- if: matrix.os == 'windows-latest'
30+
run: echo "goos=windows" >> $GITHUB_ENV
4031
- uses: actions/checkout@v3
4132
with:
4233
fetch-depth: 0

0 commit comments

Comments
 (0)