From 8674d2327940522f0c3f52d21d62baeb7efa6260 Mon Sep 17 00:00:00 2001 From: Michal Date: Sun, 22 Nov 2020 21:30:43 +0100 Subject: [PATCH] Updated CI workflow to avoid failures in forks Repository path test in CI workflow will prevent getting "release" job failures, which are being get by contributors' in GH Actions, when they push commits to their forks. --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67166e2..322e0fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,8 @@ jobs: run: ./gradlew build --scan --continue - name: Push tag and deploy to plugins.gradle.org if: github.event_name == 'push' - && github.ref == 'refs/heads/master' + && github.ref == 'refs/heads/master' + && github.repository == 'shipkit/shipkit-auto-version' && !contains(toJSON(github.event.commits.*.message), '[skip release]') run: ./gradlew publishPlugins githubRelease --scan env: