Skip to content

Commit

Permalink
fix: run release only for supported tags
Browse files Browse the repository at this point in the history
  • Loading branch information
tianhaoz95 committed Jun 7, 2021
1 parent afe53ac commit 3ec258d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Expand Up @@ -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:
Expand Down

0 comments on commit 3ec258d

Please sign in to comment.