We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72dd2cc commit 7ede4cdCopy full SHA for 7ede4cd
1 file changed
.github/workflows/contributors.yml
@@ -159,6 +159,7 @@ jobs:
159
git add README.md
160
git diff --staged --quiet || git commit -m "docs(contributor): contrib-readme-action has updated readme"
161
if git rev-parse --verify HEAD^ >/dev/null 2>&1; then
162
- git pull --rebase origin "${GITHUB_REF_NAME}"
+ git pull --rebase origin "refs/heads/${GITHUB_REF_NAME}"
163
fi
164
- git push origin "HEAD:${GITHUB_REF_NAME}"
+ # refs/heads/ avoids ambiguity when a tag shares the branch name (e.g. tag "main").
165
+ git push origin "HEAD:refs/heads/${GITHUB_REF_NAME}"
0 commit comments