Skip to content

Commit af4b509

Browse files
committed
fix pollution
1 parent a1fe003 commit af4b509

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Example
44
```yaml
5-
- uses: BlackAsLight/setup-binaryen@v1.1.0
5+
- uses: BlackAsLight/setup-binaryen@v1.1.1
66
env:
77
GH_TOKEN: ${{ github.token }}
88
with:

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ runs:
5454
--json assets -q ".assets[].name | select(test(\"$ASSET\"))")
5555
echo "Asset: $ASSET"
5656
57-
mkdir binaryen
57+
TEMP=$(mktemp -d)
5858
gh release download $VERSION \
5959
--repo WebAssembly/binaryen \
6060
--pattern $ASSET \
6161
-O - \
62-
| tar -xzC binaryen --strip-components=1
63-
ls binaryen/bin
64-
echo "$(pwd -W 2>/dev/null || pwd)/binaryen/bin" >> $GITHUB_PATH
62+
| tar -xzC $TEMP --strip-components=1
63+
ls $TEMP/bin
64+
echo "$(cd "$TEMP/bin" && pwd -W 2>/dev/null || pwd)" >> $GITHUB_PATH

0 commit comments

Comments
 (0)