Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
ci: do not checkout head ref for fork PRs, check against target of PR (
Browse files Browse the repository at this point in the history
  • Loading branch information
morremeyer authored Jul 7, 2023
1 parent 612e92c commit 2f5ba0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/helm-docs-skip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ on:
jobs:
helm-docs:
runs-on: ubuntu-latest
if: ${{ github.event.repository.name != 'charts' }}
if: ${{ github.event.pull_request.head.repo.full_name != 'morremeyer/charts' }}
steps:
- run: echo "Not a renovate PR, nothing to do"
4 changes: 1 addition & 3 deletions .github/workflows/helm-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ jobs:
runs-on: ubuntu-latest
# Only run this for PRs from the charts repo itself (to auto-update docs for renovate PRs)
# For PRs made by humans, running pre-commit locally is required.
if: ${{ github.event.repository.name == 'charts' }}
if: ${{ github.event.pull_request.head.repo.full_name == 'morremeyer/charts' }}
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
with:
ref: ${{ github.head_ref }}

- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4
with:
Expand Down

0 comments on commit 2f5ba0b

Please sign in to comment.