Browse Source

Limit actions to main

Scott Lahteine 3 years ago
parent
commit
481b8ff2d9

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

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

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

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

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

@@ -3,7 +3,7 @@
3 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 8
 on:
9 9
   schedule:
@@ -11,7 +11,11 @@ on:
11 11
 
12 12
 jobs:
13 13
   stale:
14
+    name: Close Stale Issues
15
+    if: github.repository == 'MarlinFirmware/Marlin'
16
+
14 17
     runs-on: ubuntu-latest
18
+
15 19
     steps:
16 20
     - uses: actions/stale@v3
17 21
       with:

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

@@ -3,7 +3,7 @@
3 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 8
 on:
9 9
   schedule:
@@ -11,7 +11,11 @@ on:
11 11
 
12 12
 jobs:
13 13
   lock:
14
+    name: Lock Closed Issues
15
+    if: github.repository == 'MarlinFirmware/Marlin'
16
+
14 17
     runs-on: ubuntu-latest
18
+
15 19
     steps:
16 20
     - uses: dessant/lock-threads@v2
17 21
       with:

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

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

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

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

Loading…
Cancel
Save