Skip to content

GitHub Actions "paths" is too wide #25582

Discussion options

You must be logged in to vote

Eventually got the list of the changed files in the PR as follwing:

curl --request GET \
          --url https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.number }}/files \
          --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}'

Then restricted paths trigger by working only with those PRs, which list above consist only of necessary dirs.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant