Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
behei-vonage committed Feb 21, 2025
1 parent 90c01fb commit 151424a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/auto-set-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
if [ "$TARGET_BRANCH" = "main" ] && [ "$BASE_BRANCH" != "develop" ] && [ "$BASE_BRANCH" != "rc-*" ]; then
if [[ "$TARGET_BRANCH" == "main" && "$BASE_BRANCH" != "develop" && ! "$BASE_BRANCH" == rc-* ]]; then
echo "Switching base branch from $TARGET_BRANCH to develop..."
gh pr edit "$PR_NUMBER" --base "develop"
echo "Base branch updated to 'develop'."
Expand Down

0 comments on commit 151424a

Please sign in to comment.