Skip to content

Commit

Permalink
Update docs-actions (#6351)
Browse files Browse the repository at this point in the history
This PR updates the docs-actions version.
It removes the check for forked workflows, as the docs-actions now has that check built in.
This version of the docs-actions also includes auto-deploy support. Usage can be seen in the caller example. 
https://github.com/nginxinc/docs-actions/tree/v1.0.4?tab=readme-ov-file#caller-example

Co-authored-by: Jakub Jarosz <[email protected]>
Co-authored-by: Venktesh Shivam Patel <[email protected]>
Co-authored-by: Haywood Shannon <[email protected]>
  • Loading branch information
4 people authored Sep 9, 2024
1 parent 5a319da commit da69775
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/docs-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,11 @@ permissions:
contents: read

jobs:
checks:
name: Checks and variables
runs-on: ubuntu-24.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@d20def4d420028a71f99863011c6de7325c4013e # v1.0.4
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 @@ -58,4 +37,3 @@ 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 da69775

Please sign in to comment.