Open SReject opened 1 year ago
Please check that the check-out directory contains the .git directory. Please check whether the output log has. "To create a local Git repository instead, add Git 2.18 or higher to the PATH"
I have a similar situation where I restore artifacts from a cache to the artifacts
subdirectory and afterwards run the checkout action with clean: false
. This causes the artifacts
subdirectory to disappear.
A simple repro would be:
name: "Checkout bug #1201"
on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Restore artifacts
run: |
mkdir artifacts/
echo "Hello world" > artifacts/hello
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
clean: false
- name: Verify
run: |
ls -al
ls -al artifacts/
Context
I'm currently attempting a duel repo setup where one builds nightlies for the other.
I checkout the nightly-builder repo into
./nightly
I checkout the main repo into './' with theclean
option set tofalse
Expected behavior:
./nightly
directory to exist after checking out main repoCurrent Behavior:
./nightly
directory is deletedRelevant workflow.yml parts