From cf2427c600d0c390328f7b7b46499e41f57ab987 Mon Sep 17 00:00:00 2001 From: Soltus Date: Fri, 19 Apr 2024 02:11:40 +0800 Subject: [PATCH] 6 --- .github/workflows/cd.yml | 13 ++++++++++++- app/package.json | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 5de1f684ee..38ffaff412 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -9,7 +9,6 @@ on: jobs: create_release: name: Create Release - if: github.ref == 'refs/tags/v${{ github.event.release.tag_name }}' runs-on: ubuntu-latest strategy: matrix: @@ -26,6 +25,18 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Check if latest tag + id: check_tag + run: | + echo "${{ github.ref }}" + latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`) + if [[ "${{ github.ref }}" == "refs/tags/${latest_tag}" ]]; then + echo "This tag is the latest." + else + echo "This tag is not the latest." + exit 1 + fi + - name: Setup Python uses: actions/setup-python@v5 with: diff --git a/app/package.json b/app/package.json index d6344a3956..e679639dd1 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "sillot", - "version": "0.29.200", + "version": "0.29.300", "syv": "3.0.10", "sypv": "[3.0.9]", "description": "Build Your Eternal Digital Garden",