4444 publish-docs :
4545 runs-on : ubuntu-latest
4646 needs : [build-docs]
47+ env :
48+ DRY_RUN : ${{ github.event_name == 'workflow_dispatch' && inputs.dry-run || false }}
49+ NOTIFY_EMAILS : ${{ github.event_name == 'workflow_dispatch' && inputs.notify-emails || "akoumparouli@nvidia.com" }}
50+ AWS_REGION : $${ github.event_name == 'workflow_dispatch' && inputs.aws-region || "us-east-1" }}
4751 steps :
4852 - uses : actions/checkout@v6
4953 with :
@@ -58,14 +62,14 @@ jobs:
5862 # If its on a versioned tag, it will extract the version number from the tag (strip `v` prefix)
5963 # and publish to the versioned directory in Akamai.
6064 with :
61- dry-run : ${{ inputs.dry-run }}
65+ dry-run : ${{ env.DRY_RUN }}
6266 artifacts-name : docs-html
6367 artifacts-path : _build/html
64- emails-csv : ${{ inputs.notify-emails && format('{0},{1}', vars.docs_release_emails, inputs.notify-emails) || vars.docs_release_emails }}
68+ emails-csv : ${{ env.NOTIFY_EMAILS && format('{0},{1}', vars.docs_release_emails, inputs.notify-emails) || vars.docs_release_emails }}
6569 overwrite-latest-on-tag : false
6670 run-on-version-tag-only : ${{ github.ref_name != 'main' }}
6771 request-name : automodel-publish-docs-${{ github.run_id }}
68- aws-region : ${{ inputs.aws-region }}
72+ aws-region : ${{ env.AWS-REGION }}
6973 aws-role-to-assume : ${{ secrets.AWS_ASSUME_ROLE_ARN }}
7074 aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
7175 aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
0 commit comments