The previous implementation contained 2 mistakes:
- there was a mismatch between names of env variables in the workflow
config and in the script
- the `github.base_ref` property in github actions contains a branch
name, not a full git ref like `github.ref`