Sfoglia il codice sorgente

Limit actions to main

Scott Lahteine 3 anni fa
parent
commit
481b8ff2d9

+ 2
- 1
.github/workflows/bump-date.yml Vedi File

11
 
11
 
12
 jobs:
12
 jobs:
13
   bump_date:
13
   bump_date:
14
+    name: Bump Distribution Date
15
+    if: github.repository == 'MarlinFirmware/Marlin'
14
 
16
 
15
     runs-on: ubuntu-latest
17
     runs-on: ubuntu-latest
16
 
18
 
24
     - name: Bump Distribution Date
26
     - name: Bump Distribution Date
25
       run: |
27
       run: |
26
         # Inline Bump Script
28
         # Inline Bump Script
27
-        [[ "$GITHUB_REPOSITORY" == "MarlinFirmware/Marlin" ]] || exit 0
28
         DIST=$( date +"%Y-%m-%d" )
29
         DIST=$( date +"%Y-%m-%d" )
29
         eval "sed -E -i 's/(#define +STRING_DISTRIBUTION_DATE) .*$/\1 \"$DIST\"/g' Marlin/src/inc/Version.h" && \
30
         eval "sed -E -i 's/(#define +STRING_DISTRIBUTION_DATE) .*$/\1 \"$DIST\"/g' Marlin/src/inc/Version.h" && \
30
         git config user.name "${GITHUB_ACTOR}" && \
31
         git config user.name "${GITHUB_ACTOR}" && \

+ 2
- 1
.github/workflows/check-pr.yml Vedi File

14
 
14
 
15
 jobs:
15
 jobs:
16
   bad_target:
16
   bad_target:
17
-
18
     name: PR Bad Target
17
     name: PR Bad Target
18
+    if: github.repository == 'MarlinFirmware/Marlin'
19
+
19
     runs-on: ubuntu-latest
20
     runs-on: ubuntu-latest
20
 
21
 
21
     steps:
22
     steps:

+ 5
- 1
.github/workflows/close-stale.yml Vedi File

3
 # Close open issues after a period of inactivity
3
 # Close open issues after a period of inactivity
4
 #
4
 #
5
 
5
 
6
-name: "Close stale issues"
6
+name: Close Stale Issues
7
 
7
 
8
 on:
8
 on:
9
   schedule:
9
   schedule:
11
 
11
 
12
 jobs:
12
 jobs:
13
   stale:
13
   stale:
14
+    name: Close Stale Issues
15
+    if: github.repository == 'MarlinFirmware/Marlin'
16
+
14
     runs-on: ubuntu-latest
17
     runs-on: ubuntu-latest
18
+
15
     steps:
19
     steps:
16
     - uses: actions/stale@v3
20
     - uses: actions/stale@v3
17
       with:
21
       with:

+ 5
- 1
.github/workflows/lock-closed.yml Vedi File

3
 # Lock closed issues after a period of inactivity
3
 # Lock closed issues after a period of inactivity
4
 #
4
 #
5
 
5
 
6
-name: 'Lock threads'
6
+name: Lock Closed Issues
7
 
7
 
8
 on:
8
 on:
9
   schedule:
9
   schedule:
11
 
11
 
12
 jobs:
12
 jobs:
13
   lock:
13
   lock:
14
+    name: Lock Closed Issues
15
+    if: github.repository == 'MarlinFirmware/Marlin'
16
+
14
     runs-on: ubuntu-latest
17
     runs-on: ubuntu-latest
18
+
15
     steps:
19
     steps:
16
     - uses: dessant/lock-threads@v2
20
     - uses: dessant/lock-threads@v2
17
       with:
21
       with:

+ 2
- 0
.github/workflows/test-builds.yml Vedi File

17
 
17
 
18
 jobs:
18
 jobs:
19
   test_builds:
19
   test_builds:
20
+    name: Run All Tests
21
+    if: github.repository == 'MarlinFirmware/Marlin'
20
 
22
 
21
     runs-on: ubuntu-latest
23
     runs-on: ubuntu-latest
22
 
24
 

+ 5
- 1
.github/workflows/unlock-reopened.yml Vedi File

10
     types: [reopened]
10
     types: [reopened]
11
 
11
 
12
 jobs:
12
 jobs:
13
-  lock:
13
+  unlock:
14
+    name: Unlock Reopened
15
+    if: github.repository == 'MarlinFirmware/Marlin'
16
+
14
     runs-on: ubuntu-latest
17
     runs-on: ubuntu-latest
18
+
15
     steps:
19
     steps:
16
     - uses: OSDKDev/unlock-issues@v1.1
20
     - uses: OSDKDev/unlock-issues@v1.1
17
       with:
21
       with:

Loading…
Annulla
Salva