about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-04-02 15:11:20 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-04-05 13:49:29 +0000
commit65342df8cd9ed8ca5311edc69f445fdb7b60a191 (patch)
tree74201f533a6f268a69f7b42fc94462a70c6ca1a0
parent91ffd74de41fa473bf8e7ac94b8159578ba3e94c (diff)
downloadrust-65342df8cd9ed8ca5311edc69f445fdb7b60a191.tar.gz
rust-65342df8cd9ed8ca5311edc69f445fdb7b60a191.zip
Dedup default shell specification for GHA
-rw-r--r--.github/workflows/main.yml20
1 files changed, 4 insertions, 16 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 40be442a827..504add29349 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -4,6 +4,10 @@ on:
   - push
   - pull_request
 
+defaults:
+  run:
+    shell: bash
+
 jobs:
   rustfmt:
     runs-on: ubuntu-latest
@@ -30,10 +34,6 @@ jobs:
     runs-on: ${{ matrix.os }}
     timeout-minutes: 60
 
-    defaults:
-      run:
-        shell: bash
-
     strategy:
       fail-fast: false
       matrix:
@@ -129,10 +129,6 @@ jobs:
     runs-on: ubuntu-latest
     timeout-minutes: 60
 
-    defaults:
-      run:
-        shell: bash
-
     steps:
     - uses: actions/checkout@v4
 
@@ -155,10 +151,6 @@ jobs:
     runs-on: ubuntu-latest
     timeout-minutes: 60
 
-    defaults:
-      run:
-        shell: bash
-
     steps:
     - uses: actions/checkout@v4
 
@@ -190,10 +182,6 @@ jobs:
     runs-on: ${{ matrix.os }}
     timeout-minutes: 60
 
-    defaults:
-      run:
-        shell: bash
-
     strategy:
       fail-fast: false
       matrix: