Skip to content

Commit 6488e70

Browse files
committed
Set default values for when push on main
Signed-off-by: Dong Hyuk Chang <donghyukc@nvidia.com>
1 parent 07b0700 commit 6488e70

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release-docs.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ jobs:
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

Comments
 (0)