From 48d2794623356122cda2a030ac6ac2fd6d36c46e Mon Sep 17 00:00:00 2001 From: Vomitblood Date: Wed, 7 Aug 2024 17:31:23 +0800 Subject: [PATCH] updated github actions workflow --- .github/workflows/build-validation.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-validation.yml b/.github/workflows/build-validation.yml index 743e03b..ad2cd1c 100644 --- a/.github/workflows/build-validation.yml +++ b/.github/workflows/build-validation.yml @@ -16,13 +16,15 @@ jobs: steps: - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install git run: apt update && apt install -y git - name: Get Variables - run: echo "TAG_NAME=commit-$(git rev-parse --short HEAD)" >> $GITHUB_ENV + run: | + echo "TAG_NAME=commit-$(git rev-parse --short HEAD)" >> $GITHUB_ENV + echo "TAG_NAME=commit-$(git rev-parse --short HEAD)" # - name: Update packages # run: apt update && apt upgrade -y @@ -55,8 +57,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: commit-${{ env.TAG_NAME }} - release_name: commit-${{ env.TAG_NAME }} + tag_name: commit-$(git rev-parse --short HEAD) + release_name: commit-$(git rev-parse --short HEAD) draft: false prerelease: false