From 50c777b97bac97555a6ee967bf8a57b99b92e8f8 Mon Sep 17 00:00:00 2001 From: Jonson Petard <41122242+greenhat616@users.noreply.github.com> Date: Tue, 26 Dec 2023 23:46:38 +0800 Subject: [PATCH] fix(ci): use dev commit hash when schedule dispatch --- .github/workflows/dev.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml index 8b74b09c99..a1a8ca924e 100644 --- a/.github/workflows/dev.yaml +++ b/.github/workflows/dev.yaml @@ -159,6 +159,7 @@ jobs: - name: Set Env run: | echo "BUILDTIME=$(TZ=Asia/Shanghai date)" >> $GITHUB_ENV + echo "CURRENT_GIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV shell: bash - name: Update Tag uses: richardsimko/update-tag@v1.0.11 @@ -166,6 +167,7 @@ jobs: tag_name: pre-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_SHA: ${{ env.CURRENT_GIT_SHA }} - run: | cat > release.txt << 'EOF' ## Clash Nyanpasu Nightly Build