Skip to content

Commit ab12b45

Browse files
committed
Fix zstd setup [skip ci]
1 parent fb74934 commit ab12b45

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/ci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ jobs:
5353
- name: Package and ship artifact to releases
5454
run: bash scripts/build.sh ship
5555
env:
56-
PHP_VERSION: ${{ matrix.php-versions }}
5756
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5857
GITHUB_WORKSPACE: ${{ github.workspace }}
58+
PHP_VERSION: ${{ matrix.php-versions }}
59+
REPO: ${{ github.repository }}
60+
USER: ${{ github.repository_owner }}
5961

6062
- name: Upload artifact to workflow
6163
uses: actions/upload-artifact@v2

.github/workflows/zstd.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
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)"
2121
- name: Add ZSTD
2222
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2324
REPO: ${{ github.repository }}
24-
TOKEN: ${{ secrets.GITHUB_TOKEN }}
2525
USER: ${{ github.repository_owner }}
2626
run: bash scripts/install-zstd.sh
2727
- name: Upload zstd Artifact

scripts/install-zstd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ if [ "x$zstd_url" = "x" ]; then
1111
sudo make install -j"$(nproc)" PREFIX=/opt/zstd
1212
)
1313
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"
1515
ls /tmp
1616
sudo unzip /tmp/zstd.zip -d /opt/zstd
1717
sudo chmod -R a+x /opt/zstd/bin
1818
fi
1919
sudo ln -sf /opt/zstd/bin/* /usr/local/bin
20-
rm -rf /tmp/zstd*
20+
sudo rm -rf /tmp/zstd*
2121
zstd -V

0 commit comments

Comments
 (0)