Skip to content

Commit bbbc5fb

Browse files
committed
use globally bash
1 parent 5ecfeee commit bbbc5fb

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
ext: ".exe"
2121
- operating-system: macos-10.15
2222

23+
defaults:
24+
run:
25+
shell: bash
26+
2327
runs-on: ${{ matrix.operating-system }}
2428
env:
2529
TARGET: "/CreateAgent/"
@@ -31,7 +35,6 @@ jobs:
3135
run: |
3236
echo "TAG_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
3337
echo $(go env GOPATH)/bin >> $GITHUB_PATH
34-
shell: bash
3538
3639
- name: Identify Prerelease
3740
# This is a workaround while waiting for create-release action to implement auto pre-release based on tag
@@ -40,7 +43,6 @@ jobs:
4043
curl -s https://github.com/fsaintjacques/semver-tool/archive/3.1.0.zip -o /tmp/3.1.0.zip
4144
unzip -p /tmp/3.1.0.zip semver-tool-3.1.0/src/semver >/tmp/semver && chmod +x /tmp/semver
4245
if [[ $(/tmp/semver get prerel ${GITHUB_REF/refs\/tags\//}) ]]; then echo "::set-output name=IS_PRE::true"; fi
43-
shell: bash
4446
4547
- name: Disable EOL conversions
4648
run: git config --global core.autocrlf false
@@ -66,7 +68,6 @@ jobs:
6668
go get github.com/golangci/govet
6769
go get golang.org/x/lint/golint
6870
go get -u github.com/sanbornm/go-selfupdate/...
69-
shell: bash
7071
7172
- name: Install Taskfile
7273
uses: arduino/actions/setup-taskfile@master
@@ -117,12 +118,7 @@ jobs:
117118

118119
# this will create `public/` dir with compressed full bin (<version>/<os>-<arch>.gz) and a json file
119120
- name: Create autoupdate files
120-
run: |
121-
ls
122-
go-selfupdate arduino-create-agent${{ matrix.ext }} ${TAG_VERSION}
123-
echo %errorlevel%
124-
ls
125-
shell: bash
121+
run: go-selfupdate arduino-create-agent${{ matrix.ext }} ${TAG_VERSION}
126122
# if: steps.prerelease.outputs.IS_PRE != 'true'
127123

128124
- name: Upload autoupdate files to Arduino downloads servers

0 commit comments

Comments
 (0)