Skip to content

Commit

Permalink
Merge branch 'main' into waf-nim-compile
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnginx authored Aug 2, 2024
2 parents e4000c2 + f549105 commit 697118f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/docs-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,36 @@ on:
paths:
- "docs/**"

permissions:
contents: read

jobs:
checks:
name: Checks and variables
runs-on: ubuntu-22.04
permissions:
contents: read
outputs:
forked_workflow: ${{ steps.vars.outputs.forked_workflow }}
steps:
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Set Variables
id: vars
run: |
echo "forked_workflow=${{ (github.event.pull_request && github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name) || github.repository != 'nginxinc/kubernetes-ingress' }}" >> $GITHUB_OUTPUT
- name: Output variables
run: |
echo forked_workflow: ${{ steps.vars.outputs.forked_workflow }}
call-docs-build-push:
uses: nginxinc/docs-actions/.github/workflows/docs-build-push.yml@03a9a3808fcb77cd0c19d7fa5d59b25565dd1d6d # v1.0.2
permissions:
pull-requests: write # needed to write preview url comment to PR
contents: read
needs: [checks]
with:
production_url_path: "/nginx-ingress-controller"
preview_url_path: "/previews/nginx-ingress-controller"
Expand All @@ -34,3 +58,4 @@ jobs:
secrets:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS_DOCS }}
AZURE_KEY_VAULT: ${{ secrets.AZURE_KEY_VAULT_DOCS }}
if: ${{ needs.checks.outputs.forked_workflow == 'false' }}

0 comments on commit 697118f

Please sign in to comment.