From 92928b28c10cc394e9b0a08b586127e3dbfbec0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=81=E9=80=9F=E8=9C=97=E7=89=9B?= <31986081+Jisu-Woniu@users.noreply.github.com> Date: Thu, 9 Jan 2025 19:02:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(actions):=20=F0=9F=9A=A8=20fix=20shellcheck?= =?UTF-8?q?=20warnings=20in=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The warnings can be checked by actionlint. --- .github/workflows/building.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/building.yml b/.github/workflows/building.yml index 9a54a40..41f5a4b 100644 --- a/.github/workflows/building.yml +++ b/.github/workflows/building.yml @@ -41,8 +41,8 @@ jobs: uses: mozilla-actions/sccache-action@v0.0.7 - name: Enable sccache run: | - echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV - echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV + echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV" + echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV" - name: Lint protobuf files uses: bufbuild/buf-lint-action@v1 - name: Run clippy lint @@ -124,8 +124,8 @@ jobs: uses: mozilla-actions/sccache-action@v0.0.7 - name: Enable sccache run: | - echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV - echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV + echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV" + echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV" - name: Build Debian package run: cargo xtask dist deb && dpkg-deb -c target/debian/*.deb - name: Lint Debian package @@ -158,8 +158,8 @@ jobs: uses: mozilla-actions/sccache-action@v0.0.7 - name: Enable sccache run: | - echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV - echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV + echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV" + echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV" - name: Build RPM package run: cargo xtask dist rpm && rpm -qlp target/generate-rpm/*.rpm - uses: actions/upload-artifact@v4