Skip to content

Commit 04c2322

Browse files
authored
github action: enforce issue detection with bash (#8168)
1 parent 44ec4be commit 04c2322

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

Diff for: .github/workflows/pull-request.yml

+30
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
build-linux:
1616
name: Build ${{ matrix.chunk }}
1717
runs-on: ubuntu-latest
18+
defaults:
19+
run:
20+
shell: bash
1821
strategy:
1922
matrix:
2023
chunk: [0, 1, 2, 3, 4, 5, 6, 7]
@@ -47,6 +50,9 @@ jobs:
4750
build-debug-ipv6:
4851
name: Debug IPv6 ${{ matrix.chunk }}
4952
runs-on: ubuntu-latest
53+
defaults:
54+
run:
55+
shell: bash
5056
strategy:
5157
matrix:
5258
chunk: [0, 1, 2, 3, 4, 5, 6, 7]
@@ -110,6 +116,9 @@ jobs:
110116
build-mac:
111117
name: Mac
112118
runs-on: macOS-latest
119+
defaults:
120+
run:
121+
shell: bash
113122
steps:
114123
- uses: actions/checkout@v2
115124
with:
@@ -139,6 +148,9 @@ jobs:
139148
build-pio:
140149
name: Build Platform.IO
141150
runs-on: ubuntu-latest
151+
defaults:
152+
run:
153+
shell: bash
142154
steps:
143155
- uses: actions/checkout@v2
144156
with:
@@ -163,6 +175,9 @@ jobs:
163175
host-tests:
164176
name: Host tests
165177
runs-on: ubuntu-latest
178+
defaults:
179+
run:
180+
shell: bash
166181
steps:
167182
- uses: actions/checkout@v2
168183
with:
@@ -184,6 +199,9 @@ jobs:
184199
documentation:
185200
name: Documentation
186201
runs-on: ubuntu-latest
202+
defaults:
203+
run:
204+
shell: bash
187205
steps:
188206
- uses: actions/checkout@v2
189207
with:
@@ -208,6 +226,9 @@ jobs:
208226
style-check:
209227
name: Style and formatting
210228
runs-on: ubuntu-latest
229+
defaults:
230+
run:
231+
shell: bash
211232
steps:
212233
- uses: actions/checkout@v2
213234
with:
@@ -229,6 +250,9 @@ jobs:
229250
mock-check:
230251
name: Mock trivial test
231252
runs-on: ubuntu-latest
253+
defaults:
254+
run:
255+
shell: bash
232256
steps:
233257
- uses: actions/checkout@v2
234258
with:
@@ -248,6 +272,9 @@ jobs:
248272
boards-check:
249273
name: Boards.txt check
250274
runs-on: ubuntu-latest
275+
defaults:
276+
run:
277+
shell: bash
251278
steps:
252279
- uses: actions/checkout@v2
253280
with:
@@ -275,6 +302,9 @@ jobs:
275302
code-spell:
276303
name: Check spelling
277304
runs-on: ubuntu-latest
305+
defaults:
306+
run:
307+
shell: bash
278308
steps:
279309
- uses: actions/checkout@v2
280310
with:

Diff for: .github/workflows/release-to-publish.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
package:
3333
name: Update master JSON file
3434
runs-on: ubuntu-latest
35+
defaults:
36+
run:
37+
shell: bash
3538
steps:
3639
- uses: actions/checkout@v2
3740
with:
@@ -42,7 +45,8 @@ jobs:
4245
python-version: '3.x'
4346
- name: Set GIT tag name
4447
run: |
45-
echo "TRAVIS_TAG=$(git describe --exact-match --tags)" >> $GITHUB_ENV
48+
TRAVIS_TAG="$(git describe --exact-match --tags)"
49+
echo "TRAVIS_TAG=\"${TRAVIS_TAG}\"" >> $GITHUB_ENV
4650
- name: Deploy updated JSON
4751
env:
4852
TRAVIS_BUILD_DIR: ${{ github.workspace }}

Diff for: .github/workflows/tag-to-draft-release.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
package:
1515
name: Package
1616
runs-on: ubuntu-latest
17+
defaults:
18+
run:
19+
shell: bash
1720
steps:
1821
- uses: actions/checkout@v2
1922
with:
@@ -25,7 +28,8 @@ jobs:
2528
- name: Set GIT tag name
2629
run: |
2730
# Sets an environment variable used in the next steps
28-
echo "TRAVIS_TAG=$(git describe --exact-match --tags)" >> $GITHUB_ENV
31+
TRAVIS_TAG="$(git describe --exact-match --tags)"
32+
echo "TRAVIS_TAG=\"${TRAVIS_TAG}\"" >> $GITHUB_ENV
2933
- name: Build package JSON
3034
env:
3135
TRAVIS_BUILD_DIR: ${{ github.workspace }}

0 commit comments

Comments
 (0)