Skip to content

Commit

Permalink
[BLD]: fix apply-hotfix workflow (#3428)
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb authored Jan 7, 2025
1 parent 8b0b04c commit 4f319ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/apply-hotfix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
branch_name: ${{ steps.resolve_branch.outputs.branch_name }}
branch_type: ${{ steps.resolve_branch.outputs.branch_type }}
steps:
- name: Check out hosted repo
- name: Check out repo
uses: actions/checkout@v4
with:
fetch-depth: 0
Expand All @@ -26,7 +26,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 4f319ce

Please sign in to comment.