Skip to content

Commit

Permalink
[BLD]: fix apply-hotfix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb committed Jan 7, 2025
1 parent 8b0b04c commit b88dfdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/apply-hotfix.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Apply hotfix to branch
on:
pull_request:
workflow_dispatch:
inputs:
pr_number:
Expand All @@ -26,7 +27,7 @@ jobs:
if [ "${{ github.event.inputs.branch_name }}" != "" ]; then
branch_name="${{ github.event.inputs.branch_name }}"
else
branch_name=$(git branch -r --list 'release/*' | sort -r | head -n 1 | xargs)
branch_name=$(git branch -r --list 'origin/release/*' | grep -E 'release/[0-9]{4}-[0-9]{2}-[0-9]{2}' | sort -r | head -n 1 | xargs)
fi
if [ -z "$branch_name" ]; then
Expand Down

0 comments on commit b88dfdd

Please sign in to comment.