From f6f0451afaef5a9e718db8e1022caaa4dc4f5a0d Mon Sep 17 00:00:00 2001 From: aarathyKeyvalue Date: Mon, 20 Mar 2023 11:51:17 +0530 Subject: [PATCH] Deploy yml file main to master --- .github/workflows/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3f1c4a7..1b9f013 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,11 +43,11 @@ jobs: shell: bash run: | BRANCH="${GITHUB_REF#refs/heads/}" - if [ "$BRANCH" == 'main' ] + if [ "$BRANCH" == 'master' ] then echo "Branch validation Successful" else - echo "Releases only taken from main branch" + echo "Releases only taken from master branch" exit 1 fi @@ -76,7 +76,7 @@ jobs: git config user.email github-actions@github.com git add package.json package-lock.json git commit -m "Bump version from $OLD_VERSION to $NEW_VERSION" - git push origin HEAD:main + git push origin HEAD:master - name: Build Package run: npm run build @@ -90,7 +90,7 @@ jobs: # Revert package.json and package-lock.json to the previous version npm version ${{ env.latest_version }} --no-git-tag-version git commit -am "Revert to version ${{ env.latest_version }}" - git push origin HEAD:main + git push origin HEAD:master if: failure() - name: Create GitHub release