From 6434dc990d92b38b9017a7eaf7b42c9885b08372 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Fri, 18 Oct 2024 08:51:36 -0400 Subject: [PATCH] add dispatch triggers to reusable workflows, upgrade aws credentials action --- .github/workflows/integration-tests.yml | 2 +- .github/workflows/publish-internal.yml | 16 +++++++++++++++- .github/workflows/publish-pypi.yml | 14 ++++++++++++++ 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 04c91abf..33ab6073 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -56,7 +56,7 @@ jobs: with: python-version: ${{ vars.DEFAULT_PYTHON_VERSION }} - uses: pypa/hatch@install - - uses: aws-actions/configure-aws-credentials@v2 + - uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.ASSUMABLE_ROLE_NAME }} aws-region: ${{ vars.DBT_TEST_ATHENA_REGION_NAME }} diff --git a/.github/workflows/publish-internal.yml b/.github/workflows/publish-internal.yml index dd607f07..f559987a 100644 --- a/.github/workflows/publish-internal.yml +++ b/.github/workflows/publish-internal.yml @@ -15,6 +15,20 @@ on: description: "Choose the branch to publish" type: string default: "main" + workflow_dispatch: + inputs: + package: + description: "Choose the package to publish" + type: string + default: "dbt-athena" + deploy-to: + description: "Choose whether to publish to test or prod" + type: string + default: "prod" + branch: + description: "Choose the branch to publish" + type: string + default: "main" defaults: run: @@ -33,7 +47,7 @@ jobs: with: python-version: ${{ vars.DEFAULT_PYTHON_VERSION }} - uses: pypa/hatch@install - - uses: aws-actions/configure-aws-credentials@v2 + - uses: aws-actions/configure-aws-credentials@v4 with: aws-region: ${{ vars.AWS_REGION }} aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 35f7427f..b437cfff 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -15,6 +15,20 @@ on: description: "Choose the branch to publish" type: string default: "main" + workflow_dispatch: + inputs: + package: + description: "Choose the package to publish" + type: string + default: "dbt-athena" + deploy-to: + description: "Choose whether to publish to test or prod" + type: string + default: "prod" + branch: + description: "Choose the branch to publish" + type: string + default: "main" permissions: contents: read