checkout
checkout copied to clipboard
[bug] Setting clean to false still removes contents
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 the clean
option set to false
Expected behavior:
./nightly
directory to exist after checking out main repo
Current Behavior:
./nightly
directory is deleted
Relevant workflow.yml parts
jobs:
getInfo:
name: Get build Info
runs-on: ubuntu-latest
outputs:
version: ${{ steps.getinfo.outputs.version }}
patchnotes: ${{ steps.getinfo.outputs.patchnotes }}
steps:
- name: Checkout crowbartools/firebot-nightly
uses: actions/checkout@v3
with:
path: './nightly/'
- name: Checkout crowbartools/firebot
uses: actions/checkout@v3
with:
clean: false
fetch-depth: 0
repository: 'crowbartools/firebot'
ref: 'v5'
path: '.'
- name: Get Firebot info
id: getinfo
# This errors because /nightly directory has been deleted
run: node ./nightly/scripts/get-info.js $GITHUB_OUTPUT