In the context of github-actions, how do I get sha of the last commit in the PR before it was merged?
I want to get this sha in the context of push workflow, i.e.
on:
push:
branches:
- master
If push was not triggered by a PR merge, then I need a way to ignore the action.
You can try using {{ github.event.pull_request.head.sha }} and comparing it to ${{ github.sha }}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With