ci: harden zip command with -n
from the man unzip: -n stands for never overwrite existing files. If a file already exists, skip the extraction of that file without prompting.
This commit is contained in:
parent
4edd504cb6
commit
8a91015769
|
@ -50,7 +50,7 @@ jobs:
|
|||
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/semver-break.zip`, Buffer.from(download.data));
|
||||
- name: "Unzip artifact"
|
||||
if: ${{ hashFiles('semver-break.zip') != '' }}
|
||||
run: unzip semver-break.zip
|
||||
run: unzip -n semver-break.zip
|
||||
- name: "Comment and add label on PR - Semver break"
|
||||
uses: actions/github-script@v7
|
||||
if: ${{ hashFiles('semver-break') != '' }}
|
||||
|
|
Loading…
Reference in New Issue