From 95dbe1bee3c7f7e52ddb24a54c37080620e0d1a2 Mon Sep 17 00:00:00 2001 From: Stephanie Wang Date: Thu, 24 Sep 2020 16:57:32 -0400 Subject: [PATCH] chore(ci): skip autorelease workflow on non-release PRs (#775) --- .../templates/java_library/.github/workflows/auto-release.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/synthtool/gcp/templates/java_library/.github/workflows/auto-release.yaml b/synthtool/gcp/templates/java_library/.github/workflows/auto-release.yaml index f55b93890..45e1a58b5 100644 --- a/synthtool/gcp/templates/java_library/.github/workflows/auto-release.yaml +++ b/synthtool/gcp/templates/java_library/.github/workflows/auto-release.yaml @@ -4,6 +4,7 @@ name: auto-release jobs: approve: runs-on: ubuntu-latest + if: contains(github.head_ref, 'release-v') steps: - uses: actions/github-script@v3.0.0 with: