File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 53
53
- name : Package and ship artifact to releases
54
54
run : bash scripts/build.sh ship
55
55
env :
56
- PHP_VERSION : ${{ matrix.php-versions }}
57
56
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
58
57
GITHUB_WORKSPACE : ${{ github.workspace }}
58
+ PHP_VERSION : ${{ matrix.php-versions }}
59
+ REPO : ${{ github.repository }}
60
+ USER : ${{ github.repository_owner }}
59
61
60
62
- name : Upload artifact to workflow
61
63
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change 20
20
run : echo "::set-output name=ZSTD_DIR::$(curl -sL https://github.com/facebook/zstd/releases/latest | grep -Po "zstd-(\d+\.\d+\.\d+)" | head -n 1)"
21
21
- name : Add ZSTD
22
22
env :
23
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
23
24
REPO : ${{ github.repository }}
24
- TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
25
USER : ${{ github.repository_owner }}
26
26
run : bash scripts/install-zstd.sh
27
27
- name : Upload zstd Artifact
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ if [ "x$zstd_url" = "x" ]; then
11
11
sudo make install -j" $( nproc) " PREFIX=/opt/zstd
12
12
)
13
13
else
14
- curl -u " $USER " :" $TOKEN " -o /tmp/zstd.zip -sL " $zstd_url "
14
+ curl -u " $USER " :" $GITHUB_TOKEN " -o /tmp/zstd.zip -sL " $zstd_url "
15
15
ls /tmp
16
16
sudo unzip /tmp/zstd.zip -d /opt/zstd
17
17
sudo chmod -R a+x /opt/zstd/bin
18
18
fi
19
19
sudo ln -sf /opt/zstd/bin/* /usr/local/bin
20
- rm -rf /tmp/zstd*
20
+ sudo rm -rf /tmp/zstd*
21
21
zstd -V
You can’t perform that action at this time.
0 commit comments