Skip to content

Commit 2e4176b

Browse files
committed
Check out code so we run from the same branch
1 parent 1dedfb0 commit 2e4176b

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/create-hotfix-branch.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,13 @@ jobs:
278278
echo "One or more required workflows are missing — generator will run (primary JDK: ${primary_jdk})."
279279
fi
280280
281+
- name: Checkout
282+
if: steps.check.outputs.needs-generation == 'true'
283+
uses: actions/checkout@v4
284+
281285
- name: Run workflow generator for hotfix branch
282286
if: steps.check.outputs.needs-generation == 'true'
283-
uses: spring-cloud/spring-cloud-github-actions/.github/actions/generate-workflows-for-branch@main
287+
uses: ./.github/actions/generate-workflows-for-branch
284288
with:
285289
repo: ${{ needs.derive.outputs.commercial_repo }}
286290
branch: ${{ needs.derive.outputs.commercial_branch }}

.github/workflows/run-github-actions-workflow-generator.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,15 @@ jobs:
206206
fail-fast: false
207207
matrix: ${{ fromJson(needs.setup.outputs.matrix) }}
208208
steps:
209+
- name: Checkout
210+
uses: actions/checkout@v4
211+
with:
212+
ref: ${{ needs.setup.outputs.sha }}
213+
token: ${{ inputs.token || secrets.GH_ACTIONS_REPO_TOKEN }}
214+
209215
- name: Generate workflows
210216
id: generate
211-
uses: spring-cloud/spring-cloud-github-actions/.github/actions/generate-workflows-for-branch@main
217+
uses: ./.github/actions/generate-workflows-for-branch
212218
with:
213219
repo: ${{ matrix.repo }}
214220
branch: ${{ matrix.branch }}

0 commit comments

Comments
 (0)