Browse Source

Update workflow skip condition

Scott Lahteine 4 years ago
parent
commit
5ac9d9754e

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

24
     - name: Bump Distribution Date
24
     - name: Bump Distribution Date
25
       run: |
25
       run: |
26
         # Inline Bump Script
26
         # Inline Bump Script
27
-        [[ "$GITHUB_ACTOR" == 'MarlinFirmware' ]] || exit 0
27
+        [[ "$GITHUB_REPOSITORY" == "MarlinFirmware/Marlin" ]] || exit 0
28
         DIST=$( date +"%Y-%m-%d" )
28
         DIST=$( date +"%Y-%m-%d" )
29
         eval "sed -E -i 's/(#define +STRING_DISTRIBUTION_DATE) .*$/\1 \"$DIST\"/g' Marlin/src/inc/Version.h" && \
29
         eval "sed -E -i 's/(#define +STRING_DISTRIBUTION_DATE) .*$/\1 \"$DIST\"/g' Marlin/src/inc/Version.h" && \
30
         git config user.name "${GITHUB_ACTOR}" && \
30
         git config user.name "${GITHUB_ACTOR}" && \

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

1
 #
1
 #
2
 # check-pr.yml
2
 # check-pr.yml
3
-# Automatically close the PR if it's directed to a release branch
3
+# Add a comment to the PR if it's directed to a release branch
4
 #
4
 #
5
 
5
 
6
 name: Check PR
6
 name: Check PR

+ 1
- 1
.github/workflows/test-builds.yml View File

95
     - name: Run ${{ matrix.test-platform }} Tests
95
     - name: Run ${{ matrix.test-platform }} Tests
96
       run: |
96
       run: |
97
         # Inline tests script
97
         # Inline tests script
98
-        [[ "$GITHUB_ACTOR" == 'MarlinFirmware' ]] || exit 0
98
+        [[ "$GITHUB_REPOSITORY" == "MarlinFirmware/Marlin" ]] || exit 0
99
         chmod +x buildroot/bin/*
99
         chmod +x buildroot/bin/*
100
         chmod +x buildroot/share/tests/*
100
         chmod +x buildroot/share/tests/*
101
         export PATH=./buildroot/bin/:./buildroot/share/tests/:${PATH}
101
         export PATH=./buildroot/bin/:./buildroot/share/tests/:${PATH}

Loading…
Cancel
Save