From cf4f59a470c0a2278df985bd51eefd768eee631e Mon Sep 17 00:00:00 2001 From: zhangyelong Date: Wed, 5 Jun 2024 10:01:52 +0800 Subject: [PATCH] replace github.ref to GITHUB_REF_NAME --- .github/workflows/releases.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 8bc7a7677..c4296a0a7 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -21,14 +21,13 @@ jobs: run: | sudo apt-get install -y gcc-aarch64-linux-gnu make build-all-binaries - tar -czvf build/iris-linux-amd64-${ github.ref }.tar.gz build/iris-linux-amd64 - tar -czvf build/iris-linux-arm64-${ github.ref }.tar.gz build/iris-linux-arm64 + tar -czvf build/iris-linux-amd64-${ GITHUB_REF_NAME }.tar.gz build/iris-linux-amd64 + tar -czvf build/iris-linux-arm64-${ GITHUB_REF_NAME }.tar.gz build/iris-linux-arm64 - name: Publish Release uses: softprops/action-gh-release@v2 - if: startsWith(github.ref, 'refs/tags/') with: body_path: RELEASE.md files: | - build/iris-linux-amd64-${ github.ref }.tar.gz - build/iris-linux-arm64-${ github.ref }.tar.gz \ No newline at end of file + build/iris-linux-amd64-${ GITHUB_REF_NAME }.tar.gz + build/iris-linux-arm64-${ GITHUB_REF_NAME }.tar.gz \ No newline at end of file