From ed9251faac30706bf0e15aaa5aa9b6dee56d224e Mon Sep 17 00:00:00 2001 From: Yeicor <4929005+Yeicor@users.noreply.github.com> Date: Sun, 10 Mar 2024 18:08:13 +0100 Subject: [PATCH] fix CI deployment 4 --- .github/workflows/deploy1.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy1.yml b/.github/workflows/deploy1.yml index 42fddef..e8d2888 100644 --- a/.github/workflows/deploy1.yml +++ b/.github/workflows/deploy1.yml @@ -3,7 +3,7 @@ on: tags: - "v**" -permissions: # Same as deploy2.yml +permissions: # Same as deploy2.yml contents: "write" pages: "write" id-token: "write" @@ -14,6 +14,8 @@ jobs: runs-on: "ubuntu-latest" steps: - uses: "actions/checkout@v4" + with: # Ensure we are not in a detached HEAD state + ref: "master" - 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"