bump-version icon indicating copy to clipboard operation
bump-version copied to clipboard

Error running on feature branch

Open jannotti-glaucio opened this issue 1 year ago • 0 comments

Hi Guys ! I'm trying to use the bump-version action but it's not working!

I believe the error is because the branch where it is running is feature/connector-register, because in the execution log we can see a git checkout command trying to use only the final branch name (connector-register), without its prefix (feature/)

git checkout connector-register
error: pathspec 'connector-register' did not match any file(s) known to git
Error: The process 'git' failed with exit code 1
Error: The process 'git' failed with exit code 1
    at ExecState._setResult (/home/runner/work/_actions/remorses/bump-version/js/node_modules/@actions/exec/lib/toolrunner.js:548:25)
    at ExecState.CheckComplete (/home/runner/work/_actions/remorses/bump-version/js/node_modules/@actions/exec/lib/toolrunner.js:531:18)
    at ChildProcess.<anonymous> (/home/runner/work/_actions/remorses/bump-version/js/node_modules/@actions/exec/lib/toolrunner.js:431:2[7](https://github.com/truzzt/FederatedCatalog/actions/runs/5465889014/jobs/9950007086#step:3:8))
    at ChildProcess.emit (node:events:527:2[8](https://github.com/truzzt/FederatedCatalog/actions/runs/5465889014/jobs/9950007086#step:3:9))
    at maybeClose (node:internal/child_process:10[9](https://github.com/truzzt/FederatedCatalog/actions/runs/5465889014/jobs/9950007086#step:3:10)2:16)
    at Socket.<anonymous> (node:internal/child_process:451:[11](https://github.com/truzzt/FederatedCatalog/actions/runs/5465889014/jobs/9950007086#step:3:12))
    at Socket.emit (node:events:527:28)
    at Pipe.<anonymous> (node:net:709:[12](https://github.com/truzzt/FederatedCatalog/actions/runs/5465889014/jobs/9950007086#step:3:13))

The .yml file is defined as below:

name: Build Image
on:
  push:
    branches:
      - 'feature/**'
      - 'fix/**'
jobs:
  bump-version:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - name: Checkout Code
        uses: actions/checkout@v3
      - name: Bump Version
        uses: remorses/bump-version@js
        with:
          version_file: ./launchers/VERSION
          prefix: v
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Can anyone help me with this? Regards

jannotti-glaucio avatar Jul 05 '23 15:07 jannotti-glaucio