Skip to content

Commit

Permalink
fix: trigger publish flow only after merged PR to the production bran…
Browse files Browse the repository at this point in the history
…ch (#70)
  • Loading branch information
TMaszko authored Jun 1, 2021
1 parent 6360bc9 commit 88371d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ on:
pull_request:
types: [closed]
branches:
- main
- production

workflow_dispatch:
jobs:
publish:
name: Install and publish
if: |
startsWith(github.event.pull_request.head.ref, 'release') && github.event.pull_request.merged == true
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit 88371d9

Please sign in to comment.