For forked repos I was able to run a gh actions workflow by removing the ref: ${{ github.event.pull_request.head.ref }} from your example. This enabled the workflow to pull the forked branch commit, with it's history, then fetch the base master branch with the defined depth and the affected:lint command worked in the end :)
Hope it helps someone!
For forked repos I was able to run a gh actions workflow by removing the
ref: ${{ github.event.pull_request.head.ref }}
from your example. This enabled the workflow to pull the forked branch commit, with it's history, then fetch the base master branch with the defined depth and theaffected:lint
command worked in the end :)Hope it helps someone!
Cool! Thanks for the reply! I will test that out and update the post if it works well!
I finally got around to testing this fix and updating this blog post. Thanks again Agustin!