From cb6dcffb1952b58a8fc9e4b7ff351f5888bf9c54 Mon Sep 17 00:00:00 2001 From: elibrody <85048617+elibrody@users.noreply.github.com> Date: Mon, 13 May 2024 16:39:44 -0500 Subject: [PATCH] Delete .github/workflows/update-version-on-branch.yml --- .../workflows/update-version-on-branch.yml | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100644 .github/workflows/update-version-on-branch.yml diff --git a/.github/workflows/update-version-on-branch.yml b/.github/workflows/update-version-on-branch.yml deleted file mode 100644 index babce2b9..00000000 --- a/.github/workflows/update-version-on-branch.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Update Version on Branch Creation - -on: - create: - # This will trigger the workflow when branches or tags are created. - -jobs: - update-version: - runs-on: ubuntu-latest - if: github.event.ref_type == 'branch' && github.ref_name != 'main' && github.ref_name != 'master' - steps: - - name: Checkout code - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - with: - ref: ${{ github.ref }} - - - name: Set up Node.js - uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3 - with: - node-version: '20' - - - name: Update package.json version - run: | - jq '.version = "${{ github.ref_name }}"' package.json > temp.json && mv temp.json package.json - - - name: Commit and Push - run: | - git config --global user.email "action@github.com" - git config --global user.name "GitHub Action" - git add package.json - git commit -m "Update version to ${{ github.ref_name }}" - git push origin ${{ github.ref_name }}