fix: checkout release-please PR before local action#3723
Conversation
|
Claude finished @joeyorlando's task in 1m 3s —— View job PR Review
SummaryThe fix correctly addresses the root cause: the release-please branch in Overall: LGTM, this will unblock release-please PR #3716. One optional simplification noted below. Observations1. Consider collapsing the two conditional checkouts into one unconditional checkout — The two checkout steps are now byte-identical except for the - name: Checkout project
if: ${{ steps.check-release-please.outputs.is-release-please != 'true' }}
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
fetch-depth: 1
- name: Checkout project for release-please PR
if: ${{ steps.check-release-please.outputs.is-release-please == 'true' }}
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
fetch-depth: 1Since the configurations are identical and together they cover every case, you could drop both Minimal patch: - name: Checkout project
- if: ${{ steps.check-release-please.outputs.is-release-please != 'true' }}
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- with:
- persist-credentials: false
- fetch-depth: 1
-
- - name: Checkout project for release-please PR
- if: ${{ steps.check-release-please.outputs.is-release-please == 'true' }}
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
fetch-depth: 1This is optional — the current fix is correct as-is, and if you preferred keeping the two conditional steps for future divergence (e.g. different 2. Correctness of downstream steps — verified
3. No security concerns The new step uses the same pinned SHA ( VerdictApprove-worthy from a correctness and security standpoint. The only feedback is the optional consolidation above. |
Summary
./.github/actions/github-app-tokenexists on disk before GitHub tries to load itRoot cause
The release-please path skipped the first checkout, then immediately ran
uses: ./.github/actions/github-app-token. Local actions cannot be loaded until the repository has been checked out, so the job failed with:Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/home/runner/_work/archestra/archestra/.github/actions/github-app-token'Fixes the failure on release-please PR #3716.