The checkout action should set the git repo up with HEAD pointing at the commit that triggered the action. It feels like we can rely on this to set the commit that the user wants to deploy.
It seems to run on my local machine, but I suspect there will be issues when this run in GitHub. At the very least this is a breaking change for people using the action currently.
For deploying the branch/pr that triggered the action I think this method should work.
For deploying a different branch the user will have to give more arguments to the checkout action.
This one I'm a little uncertain about.
The checkout action should set the git repo up with HEAD pointing at the commit that triggered the action. It feels like we can rely on this to set the commit that the user wants to deploy.
It seems to run on my local machine, but I suspect there will be issues when this run in GitHub. At the very least this is a breaking change for people using the action currently.
For deploying the branch/pr that triggered the action I think this method should work.
For deploying a different branch the user will have to give more arguments to the checkout action.