From 5ac9d9754e5feb705030f1ba1703d2893b829ed7 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 8 Jan 2020 17:20:14 -0600 Subject: [PATCH] Update workflow skip condition --- .github/workflows/bump-date.yml | 2 +- .github/workflows/check-pr.yml | 2 +- .github/workflows/test-builds.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bump-date.yml b/.github/workflows/bump-date.yml index ad4b9ed1f..ecf4a4f0e 100644 --- a/.github/workflows/bump-date.yml +++ b/.github/workflows/bump-date.yml @@ -24,7 +24,7 @@ jobs: - name: Bump Distribution Date run: | # Inline Bump Script - [[ "$GITHUB_ACTOR" == 'MarlinFirmware' ]] || exit 0 + [[ "$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 a124bceb4..31b196e06 100644 --- a/.github/workflows/check-pr.yml +++ b/.github/workflows/check-pr.yml @@ -1,6 +1,6 @@ # # check-pr.yml -# Automatically close the PR if it's directed to a release branch +# Add a comment to the PR if it's directed to a release branch # name: Check PR diff --git a/.github/workflows/test-builds.yml b/.github/workflows/test-builds.yml index 2422742cd..db5c5ab70 100644 --- a/.github/workflows/test-builds.yml +++ b/.github/workflows/test-builds.yml @@ -95,7 +95,7 @@ jobs: - name: Run ${{ matrix.test-platform }} Tests run: | # Inline tests script - [[ "$GITHUB_ACTOR" == 'MarlinFirmware' ]] || exit 0 + [[ "$GITHUB_REPOSITORY" == "MarlinFirmware/Marlin" ]] || exit 0 chmod +x buildroot/bin/* chmod +x buildroot/share/tests/* export PATH=./buildroot/bin/:./buildroot/share/tests/:${PATH}