diff --git a/.github/workflows/bumpversion.yml b/.github/workflows/bumpversion.yml index 7c413ce..80ee300 100644 --- a/.github/workflows/bumpversion.yml +++ b/.github/workflows/bumpversion.yml @@ -8,22 +8,34 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - uses: actions/checkout@v2 with: - ref: develop + token: ${{ secrets.TOKEN }} + # ref: develop + - name: fetch all branches + run: | + + + - name: pull latest develop branch changes + run: git pull origin develop - # push changes to develop - name: set global attributes run: | git config --global user.email "bmsteve96@gmail.com" git config --global user.name "Benedict Steven" git remote set-url origin https://x-access-token:${{ secrets.TOKEN }}@github.com/${{ github.repository }} - name: Build - run: npm install + run: | + git fetch --all + git checkout develop + npm install + - name: Build - run: npm run build + run: | + git fetch --all + git checkout develop + npm run build - name: bump version actions uses: bmsteven/bump-version@1.0.3 diff --git a/src/actions.js b/src/actions.js index ce56733..d77c653 100644 --- a/src/actions.js +++ b/src/actions.js @@ -100,7 +100,6 @@ const run = async () => { } catch (error) { console.log("error", error?.message); } - // update PR try { const options = {