Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries
What part(s) of the article would you like to see updated?
The workflow run on my GitHub repo indicates that github.ref contains destination branch when PR is closed, and not refs/pull/<pr_number>/merge
Note that:
- Workflow file says
BRANCH=${{ github.ref }}
- Workflow run prints
BRANCH=main
Either the documentation needs to be updated to use the following solution instead:
BRANCH="refs/pull/${{ github.event.pull_request.number }}/merge"
Or the backend code needs to be fixed to provide branch name in github.ref
Additional information
No response
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries
What part(s) of the article would you like to see updated?
The workflow run on my GitHub repo indicates that
github.refcontains destination branch when PR is closed, and notrefs/pull/<pr_number>/mergeNote that:
BRANCH=${{ github.ref }}BRANCH=mainEither the documentation needs to be updated to use the following solution instead:
Or the backend code needs to be fixed to provide branch name in
github.refAdditional information
No response