Skip to content

Commit

Permalink
Fix publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Aug 29, 2024
1 parent 52165fe commit c6d4a99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ on:
# Runs whenever a release PR is merged
pull_request:
branches:
- release/**
- main
types: [closed]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
publish:
# Run only when pull request is merged, not abandoned
if: ${{ !github.event.pull_request || github.event.pull_request.merged }}
# Run only for "release/x.y.z" PRs, and only when the PR is merged (not abandoned)
if: ${{ startsWith(github.head_ref, 'releases/') && (!github.event.pull_request || github.event.pull_request.merged) }}
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit c6d4a99

Please sign in to comment.