Skip to content

Commit da69775

Browse files
nginx-jackjjngxvepatelhaywoodsh
authored
Update docs-actions (#6351)
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]>
1 parent 5a319da commit da69775

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

.github/workflows/docs-build-push.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,32 +22,11 @@ permissions:
2222
contents: read
2323

2424
jobs:
25-
checks:
26-
name: Checks and variables
27-
runs-on: ubuntu-24.04
28-
permissions:
29-
contents: read
30-
outputs:
31-
forked_workflow: ${{ steps.vars.outputs.forked_workflow }}
32-
steps:
33-
- name: Checkout Repository
34-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
35-
36-
- name: Set Variables
37-
id: vars
38-
run: |
39-
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
40-
41-
- name: Output variables
42-
run: |
43-
echo forked_workflow: ${{ steps.vars.outputs.forked_workflow }}
44-
4525
call-docs-build-push:
4626
uses: nginxinc/docs-actions/.github/workflows/docs-build-push.yml@d20def4d420028a71f99863011c6de7325c4013e # v1.0.4
4727
permissions:
4828
pull-requests: write # needed to write preview url comment to PR
4929
contents: read
50-
needs: [checks]
5130
with:
5231
production_url_path: "/nginx-ingress-controller"
5332
preview_url_path: "/previews/nginx-ingress-controller"
@@ -58,4 +37,3 @@ jobs:
5837
secrets:
5938
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS_DOCS }}
6039
AZURE_KEY_VAULT: ${{ secrets.AZURE_KEY_VAULT_DOCS }}
61-
if: ${{ needs.checks.outputs.forked_workflow == 'false' }}

0 commit comments

Comments
 (0)