I’m new to GitHub and Actions. I am trying to merge a branch into main within a workflow which was triggered by a push event on same branch.
name: Merge dev branch to main
steps: - uses: actions/checkout@v2 with: ref: 'main' - name: Merge Branches run: | git fetch dev git checkout dev git merge dev
But the step fails with the following error message:
fatal: ‘dev’ does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Error: Process completed with exit code 128.
Any help in resolving this will be much appreciated.