Skip to content

Commit 21ca24c

Browse files
committed
fix(cd.yml): provide explicit path to find command
There is an existing issue with win64 agents trying to run the find command actions/runner-images#263 The fix is to provide the explicit path to the find command.
1 parent f69d022 commit 21ca24c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/steps/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ steps:
66
- ${{ if eq(parameters.unityProject, 'true') }}:
77
- bash: |
88
npm pack 2>/dev/null
9-
tarball=$(find . -name "*.tgz")
9+
tarball=$(/usr/bin/find . -name "*.tgz")
1010
tarballFilePaths=$(tar -tf $tarball)
1111
1212
while read -r filePath
@@ -319,7 +319,7 @@ steps:
319319
displayName: Create semantic-release.config.js
320320
- bash: |
321321
cat > npm-tarball-to-zip.sh <<- "EOF"
322-
tarball=$(find . -name "*.tgz")
322+
tarball=$(/usr/bin/find . -name "*.tgz")
323323
zipName=$(echo $tarball | sed -e "s/\.[^.]*$//").zip
324324
files=$(tar -tf $tarball | sed "s/^package\\///")
325325
npx --no-install --cache ../node_modules bestzip $zipName $files

0 commit comments

Comments
 (0)