Anirban166 / Autocomment-atime-results

GitHub Action that automatically comments a plot and other atime-based results on PRs
https://github.com/marketplace/actions/autocomment-atime-results
0 stars 1 forks source link

`git switch` fails with PRs coming from forks? #38

Open etiennebacher opened 3 weeks ago

etiennebacher commented 3 weeks ago

Hello, thanks for creating this github action workflow. I'm trying to use it in marginaleffects but I run into an issue when the PR was created from a fork of the repo (my fork in this case) because of git switch "${GITHUB_HEAD_REF}".

https://github.com/vincentarelbundock/marginaleffects/actions/runs/11251933456/job/31284004081?pr=1229#step:3:204

The name of my branch is etiennebacher:setup-benchmark-ci but ${GITHUB_HEAD_REF} uses only setup-benchmark-ci, and therefore git switch fails.

It seems that this issue also occurs in other repos using this action, such as data.table. For instance, the workflow associated with the branch myoung3:named_lapply has the same error message: https://github.com/Rdatatable/data.table/actions/runs/10734222605/job/29768987281#step:3:390

Am I missing some configuration to make this work or is this a proper bug?