From 228ff5edf41893516198e604c832b7a0bed456bb Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Thu, 15 Feb 2024 19:45:37 +0800 Subject: [PATCH] ci: change tag --- .github/workflows/alpha.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index 6dcce6a7..9abf4ef0 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: push: branches: [main] - tags-ignore: [updater,alpha] + tags-ignore: [updater, alpha] permissions: write-all env: CARGO_INCREMENTAL: 0 @@ -136,3 +136,25 @@ jobs: prerelease: true token: ${{ secrets.GITHUB_TOKEN }} files: src-tauri/target/${{ matrix.target }}/release/bundle/deb/*.deb + update_tag: + name: Update tag + runs-on: ubuntu-latest + needs: [alpha, alpha-for-linux] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set Env + run: | + echo "BUILDTIME=$(TZ=Asia/Shanghai date)" >> $GITHUB_ENV + shell: bash + - name: Update Tag + uses: richardsimko/update-tag@v1 + with: + tag_name: alpha + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: | + cat > release.txt << 'EOF' + ## Clash Verge Rev Alpha + Created at ${{ env.BUILDTIME }}. + EOF