You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a workflow that generates a file and then commits this file. This should happen on a separate branch and be merged when the action is complete. I currently use another action to merge and delete the branch.
Push to branch refs/pull/25/merge
To https://github.com/estensen/python-actions.git
! [remote rejected] HEAD -> refs/pull/25/merge (deny updating a hidden ref)
error: failed to push some refs to 'https://estensen:***@github.com/estensen/python-actions.git'
Activity
estensen commentedon Oct 17, 2019
Solved this by specifying the correct ref when checking out:
Backtest workflow: Fixes extra commit
kenorb commentedon Jul 13, 2020
I think I've got the same issue.

My configuration is like:
Specifying
ref: refs/heads/${{ github.head_ref }}as suggested didn't help.kenorb commentedon Jul 13, 2020
Related:
Backtest workflow: Fixes extra commit
murilogok commentedon Aug 6, 2021
Solved this issue (deny updating a hidden ref) with:
Backtest workflow: Fixes extra commit