From 481b8ff2d91d8c1fb66ed3975a3a054c81b77425 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 5 Jul 2020 15:23:07 -0500 Subject: [PATCH] Limit actions to main --- .github/workflows/bump-date.yml | 3 ++- .github/workflows/check-pr.yml | 3 ++- .github/workflows/close-stale.yml | 6 +++++- .github/workflows/lock-closed.yml | 6 +++++- .github/workflows/test-builds.yml | 2 ++ .github/workflows/unlock-reopened.yml | 6 +++++- 6 files changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bump-date.yml b/.github/workflows/bump-date.yml index ecf4a4f0ec..54902da8c9 100644 --- a/.github/workflows/bump-date.yml +++ b/.github/workflows/bump-date.yml @@ -11,6 +11,8 @@ on: jobs: bump_date: + name: Bump Distribution Date + if: github.repository == 'MarlinFirmware/Marlin' runs-on: ubuntu-latest @@ -24,7 +26,6 @@ jobs: - name: Bump Distribution Date run: | # Inline Bump Script - [[ "$GITHUB_REPOSITORY" == "MarlinFirmware/Marlin" ]] || exit 0 DIST=$( date +"%Y-%m-%d" ) eval "sed -E -i 's/(#define +STRING_DISTRIBUTION_DATE) .*$/\1 \"$DIST\"/g' Marlin/src/inc/Version.h" && \ git config user.name "${GITHUB_ACTOR}" && \ diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml index 744bdd20cf..aa4a2c59c9 100644 --- a/.github/workflows/check-pr.yml +++ b/.github/workflows/check-pr.yml @@ -14,8 +14,9 @@ on: jobs: bad_target: - name: PR Bad Target + if: github.repository == 'MarlinFirmware/Marlin' + runs-on: ubuntu-latest steps: diff --git a/.github/workflows/close-stale.yml b/.github/workflows/close-stale.yml index fae13f3a93..083e844e90 100644 --- a/.github/workflows/close-stale.yml +++ b/.github/workflows/close-stale.yml @@ -3,7 +3,7 @@ # Close open issues after a period of inactivity # -name: "Close stale issues" +name: Close Stale Issues on: schedule: @@ -11,7 +11,11 @@ on: jobs: stale: + name: Close Stale Issues + if: github.repository == 'MarlinFirmware/Marlin' + runs-on: ubuntu-latest + steps: - uses: actions/stale@v3 with: diff --git a/.github/workflows/lock-closed.yml b/.github/workflows/lock-closed.yml index e500e9e8d2..8420fdc0e4 100644 --- a/.github/workflows/lock-closed.yml +++ b/.github/workflows/lock-closed.yml @@ -3,7 +3,7 @@ # Lock closed issues after a period of inactivity # -name: 'Lock threads' +name: Lock Closed Issues on: schedule: @@ -11,7 +11,11 @@ on: jobs: lock: + name: Lock Closed Issues + if: github.repository == 'MarlinFirmware/Marlin' + runs-on: ubuntu-latest + steps: - uses: dessant/lock-threads@v2 with: diff --git a/.github/workflows/test-builds.yml b/.github/workflows/test-builds.yml index ebdd60b2d1..60f9a48c5b 100644 --- a/.github/workflows/test-builds.yml +++ b/.github/workflows/test-builds.yml @@ -17,6 +17,8 @@ on: jobs: test_builds: + name: Run All Tests + if: github.repository == 'MarlinFirmware/Marlin' runs-on: ubuntu-latest diff --git a/.github/workflows/unlock-reopened.yml b/.github/workflows/unlock-reopened.yml index 45e4d713e8..614ef3fab2 100644 --- a/.github/workflows/unlock-reopened.yml +++ b/.github/workflows/unlock-reopened.yml @@ -10,8 +10,12 @@ on: types: [reopened] jobs: - lock: + unlock: + name: Unlock Reopened + if: github.repository == 'MarlinFirmware/Marlin' + runs-on: ubuntu-latest + steps: - uses: OSDKDev/unlock-issues@v1.1 with: