Skip to content

Commit

Permalink
Filter branch creation using conditional rather than job failure
Browse files Browse the repository at this point in the history
  • Loading branch information
rpanderson committed May 13, 2020
1 parent 5576ae2 commit a574270
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,11 @@ jobs:
echo github.event.ref_type: ${{ github.event.ref_type }}
echo github.event.master_branch: ${{ github.event.master_branch }}
echo github.actor: ${{ github.actor }}
- name: Ignore branch creation
if: github.event_name == 'create' && github.event.ref_type == 'branch'
run: exit 1
release:
name: Release
runs-on: ubuntu-latest
needs: github_properties
if: github.repository == 'rpanderson/workflow-sandbox'
if: github.repository == 'rpanderson/workflow-sandbox' && (github.event_name != 'create' || github.event.ref_type != 'branch')
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit a574270

Please sign in to comment.