Skip to content

Commit b82f8ad

Browse files
committed
Fix RC workflow checkout for branch dispatch
1 parent 12d7d9e commit b82f8ad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test-spring-boot-rc-version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616
with:
17-
ref: main
1817
fetch-depth: 0
1918
- name: Generate Version File
2019
run: |
@@ -45,7 +44,8 @@ jobs:
4544
run: |
4645
echo "Updating Spring Boot Dependencies Version: ${{ env.spring_boot_version }}"
4746
echo "Updating Spring Cloud Dependencies Version: ${{ env.spring_cloud_version }}"
48-
git checkout -b "${{ env.update_branch }}"
47+
git fetch origin main
48+
git checkout -B "${{ env.update_branch }}" origin/main
4949
pip install termcolor
5050
python ./sdk/spring/scripts/get_spring_boot_managed_external_dependencies.py -b "${{ env.spring_boot_version }}" -c "${{ env.spring_cloud_version }}"
5151
- name: Update external_dependencies.txt

0 commit comments

Comments
 (0)