Files downloaded by cURL gets deleted after the next step #129788
-
Select Topic AreaGeneral BodySelf-explanatory: When trying to download a file using curl, the file gets deleted by the next step of my workflow file Is this normal? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Just another run to show that this issue exists https://github.com/fillwithjoy1/pixel-6-kernel/actions/runs/9679041930 |
Beta Was this translation helpful? Give feedback.
-
Each time you use a new # Runs a set of commands using the runners shell
- name: Sync kernel repo
run: |
mkdir android-kernel
cd android-kernel
repo init -u https://android.googlesource.com/kernel/manifest -b android14-gs-pixel-6.1
repo sync -c --no-tags
- name: Update vendor ramdisk (through curl)
if: false
run: |
cd ..
.... For example, it looks to me like with this You can change the default working directory for run steps for each individual run step, or as a default for the entire job. |
Beta Was this translation helpful? Give feedback.
Each time you use a new
run
step, it starts in the${{ github.workspace }}
directory - AKA, often the root of where your checkout action clones things.For example, it looks to me like with this
cd ..
, you're trying to go back to the original directory after in the previous step, where you …