From 9cb6b29c9304c59e0f4871f42d06b569eb25e8bf Mon Sep 17 00:00:00 2001 From: Yeicor <4929005+Yeicor@users.noreply.github.com> Date: Sun, 10 Mar 2024 18:11:24 +0100 Subject: [PATCH] fix CI deployment 6 --- .github/workflows/deploy1.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy1.yml b/.github/workflows/deploy1.yml index 7867975..31b988b 100644 --- a/.github/workflows/deploy1.yml +++ b/.github/workflows/deploy1.yml @@ -16,6 +16,8 @@ jobs: - uses: "actions/checkout@v4" with: # Ensure we are not in a detached HEAD state ref: "master" + # Check that the tag commit is the latest master commit + - run: "[[ $(git rev-parse ${{ github.ref }}) == $(git rev-parse master) ]] || exit 1" - run: "echo 'CLEAN_VERSION=${{ github.ref }}' | sed 's,refs/tags/v,,g' >> $GITHUB_ENV" # Write the new version to package.json - uses: "actions/setup-node@v4"