Skip to content

Commit

Permalink
Move checkout step up in the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mukulmishra18 committed Dec 28, 2023
1 parent a96bd78 commit 9997901
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout develop
uses: actions/checkout@v2
with:
# For testing checkout to a temp branch, will be changed to develop
ref: feature/test-automated-release
token: ${{ secrets.GH_TOKEN }}
- name: Read package.json version
uses: actions/github-script@v6
id: define-package-json-version
Expand All @@ -28,12 +34,6 @@ jobs:
script: |
const { defineReleaseVersion } = require('./.github/scripts/defineVersion.js')
return defineReleaseVersion({core}, "${{ inputs.release-type || 'minor' }}", "${{ inputs.prerelease-label }}", "${{ steps.define-package-json-version.outputs.packageJsonVersion }}" )
- name: Checkout develop
uses: actions/checkout@v2
with:
# For testing checkout to a temp branch, will be changed to develop
ref: feature/test-automated-release
token: ${{ secrets.GH_TOKEN }}
- name: Bump package.json version
run: |
git pull
Expand Down

0 comments on commit 9997901

Please sign in to comment.