Skip to content

Commit

Permalink
Only run the release workflow on main
Browse files Browse the repository at this point in the history
  • Loading branch information
spencewenski committed May 5, 2024
1 parent e7fc51a commit 29cd38c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ on:
workflows: [ Feature Powerset ]
types:
- completed
branches:
- main

jobs:
release-plz:
name: Release-plz
release:
name: Release
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
Expand All @@ -31,3 +33,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
on-powerset-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'The `Feature Powerset` workflow failed, skipping release.'

0 comments on commit 29cd38c

Please sign in to comment.