Skip to content

Commit

Permalink
Refactor release.yml to update branch filtering and include 'dev' bra…
Browse files Browse the repository at this point in the history
…nch in pull_request trigger
  • Loading branch information
a-ng-d committed Sep 22, 2024
1 parent ddba71f commit d5016de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
types: [synchronize, closed]
branches:
- ui-color-palette-*
- dev

jobs:
create-release:
Expand All @@ -25,7 +25,7 @@ jobs:
- name: Create release
id: create_release
if: github.event.pull_request.merged == true
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'ui-color-palette-')
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit d5016de

Please sign in to comment.