From 3ec258d072c7c5ffae003ec4fd8ad76b374dc0d7 Mon Sep 17 00:00:00 2001 From: Tianhao Zhou Date: Mon, 7 Jun 2021 14:13:04 -0700 Subject: [PATCH] fix: run release only for supported tags --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c90e066..b70e246 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,18 @@ on: jobs: release-to-registries: runs-on: ubuntu-latest + # The release workflow should only be triggered by conventional + # tags. For details, see the Angular contributing documentation at: + # https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-commit-message-format + if: | + startsWith(github.event.head_commit.message, 'build') + || startsWith(github.event.head_commit.message, 'ci') + || startsWith(github.event.head_commit.message, 'docs') + || startsWith(github.event.head_commit.message, 'feat') + || startsWith(github.event.head_commit.message, 'fix') + || startsWith(github.event.head_commit.message, 'perf') + || startsWith(github.event.head_commit.message, 'refactor') + || startsWith(github.event.head_commit.message, 'test') steps: - uses: actions/checkout@v2.3.4 with: