The two-step pattern (sparse-checkout RELEASE_NOTES.md, then full checkout) left sparse-checkout config active on the workspace, so the second checkout still only restored RELEASE_NOTES.md. Docker build then failed with "open Dockerfile: no such file or directory". Since both RELEASE_NOTES.md and the full source are needed in the same job, one full checkout is simpler and correct.
This commit is contained in:
@@ -13,13 +13,7 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch RELEASE_NOTES.md only
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
sparse-checkout: RELEASE_NOTES.md
|
|
||||||
sparse-checkout-cone-mode: false
|
|
||||||
|
|
||||||
- name: Checkout full repo for Docker build
|
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Extract version from tag
|
- name: Extract version from tag
|
||||||
|
|||||||
Reference in New Issue
Block a user