Skip to content

Commit

Permalink
ci(dist): allow release workflow dispatch from develop branch (#1566)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli authored Jan 20, 2024
1 parent e2dfe05 commit 6ae5a23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release_dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ jobs:
# if branch was provided explicitly via workflow_dispatch, use it
if [[ ("${{ github.event_name }}" == "workflow_dispatch") && (-n "${{ inputs.branch }}") ]]; then
branch="${{ inputs.branch }}"
# prevent releases from develop or master
if [[ ("$branch" == "develop") || ("$branch" == "master") ]]; then
# prevent releases from master
if [[ "$branch" == "master" ]]; then
echo "error: releases may not be triggered from branch $branch"
exit 1
fi
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
version: ${{ needs.set_options.outputs.version }}
pr:
name: Draft release PR
if: ${{ github.event_name == 'push' && github.ref_name != 'master' && (github.event_name == 'workflow_dispatch' && inputs.approve == 'true') || (github.event_name != 'workflow_dispatch' && !contains(github.ref_name, 'rc')) }}
if: ${{ github.ref_name != 'master' && ((github.event_name == 'workflow_dispatch' && inputs.approve == 'true') || (github.event_name != 'workflow_dispatch' && !contains(github.ref_name, 'rc'))) }}
needs:
- set_options
- make_dist
Expand Down

0 comments on commit 6ae5a23

Please sign in to comment.