Skip to content

Commit

Permalink
(fix): Add pr_number to the "Check config and readme updates / Ensure…
Browse files Browse the repository at this point in the history
… generated files are included (pull_request)" action to fix "Resource not accessible by integration" error while running the action

Signed-off-by: AJAY JAGANATHAN <[email protected]>
  • Loading branch information
AjayJagan committed Oct 11, 2024
1 parent e8e266f commit 0a7cbef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/check-file-updates.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Check config and readme updates
on:
pull_request:
pull_request_target:
jobs:
file-updates:
permissions:
Expand Down Expand Up @@ -37,6 +37,7 @@ jobs:
Please run `${{ steps.generate-files.outputs.CMD }}` and commit the changes.
For more info: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
pr_number: ${{github.event.number}}
- name: Print git status and fail pr
if: ${{ steps.check_generated_files.outputs.missing_generated_files == 'true' }}
run: |
Expand Down

0 comments on commit 0a7cbef

Please sign in to comment.