From d2bbbde49d01a307227e153b7a16670ca81d65af Mon Sep 17 00:00:00 2001 From: holysoles Date: Thu, 23 Jan 2025 09:46:21 -0600 Subject: [PATCH] Support actions on forks by specifying repo during checkout --- .github/workflows/ci-helm-lint-test.yml | 4 ++++ .github/workflows/helm-docs.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ci-helm-lint-test.yml b/.github/workflows/ci-helm-lint-test.yml index 88b5978..38a007d 100644 --- a/.github/workflows/ci-helm-lint-test.yml +++ b/.github/workflows/ci-helm-lint-test.yml @@ -17,6 +17,8 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: "0" + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Install Helm uses: azure/setup-helm@v4 @@ -50,6 +52,8 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: "0" + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Install Helm uses: azure/setup-helm@v4 diff --git a/.github/workflows/helm-docs.yaml b/.github/workflows/helm-docs.yaml index 6704c62..3248325 100644 --- a/.github/workflows/helm-docs.yaml +++ b/.github/workflows/helm-docs.yaml @@ -20,6 +20,7 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Render helm docs inside the README.md and push changes back to PR branch uses: jessebot/helm-docs-action@0.0.1