From 577d1feccac93157e355fd1eefbc3e5677d1e5ce Mon Sep 17 00:00:00 2001 From: gm Date: Sat, 2 Apr 2022 12:48:32 +0200 Subject: [PATCH] Reworked conditional expression --- .github/workflows/build_and_run.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build_and_run.yaml b/.github/workflows/build_and_run.yaml index 517ce627..024e8600 100644 --- a/.github/workflows/build_and_run.yaml +++ b/.github/workflows/build_and_run.yaml @@ -94,7 +94,7 @@ jobs: - name: Create release on main or develop # Release on develop keeps the type pre-release - if: github.ref == ( 'refs/heads/main' || 'refs/heads/develop' ) + if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' env: GITHUB_USER: "frzb" GITHUB_REPO: "coinboot" @@ -114,7 +114,6 @@ jobs: git pull --tags origin git config --global user.email "build@coinboot.io" git config --global user.name "Github Actions" - git tag -d $PRE_RELEASE_TAG git tag $RELEASE_TAG git remote rm origin git remote add origin https://"${GITHUB_TOKEN}"@github.com/"${GITHUB_USER}"/"${GITHUB_REPO}".git