From 1fc86bf863db445489fb0cceb15494a98514f9ba Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 29 Jan 2025 08:58:53 -0600 Subject: [PATCH 1/5] test release action --- .github/workflows/release-python.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index bcf37d1a22..108c3fa969 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -15,6 +15,7 @@ on: type: boolean schedule: - cron: '30 5 * * *' + pull_request: env: # Changes per repo @@ -41,6 +42,9 @@ jobs: outputs: version: ${{ steps.pre-publish.outputs.version }} steps: + - run: | + env + exit 1 - uses: mongodb-labs/drivers-github-tools/secure-checkout@v2 with: app_id: ${{ vars.APP_ID }} @@ -85,14 +89,12 @@ jobs: name: all-dist-${{ github.run_id }} path: dist/ - name: Publish package distributions to TestPyPI + if: startsWith(env.DRY_RUN, 'false') uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://test.pypi.org/legacy/ skip-existing: true attestations: ${{ env.DRY_RUN }} - - name: Publish package distributions to PyPI - if: startsWith(env.DRY_RUN, 'false') - uses: pypa/gh-action-pypi-publish@release/v1 post-publish: needs: [publish] From c9de281561d5be15a1da97214c41a94ec0311ac1 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 29 Jan 2025 09:01:18 -0600 Subject: [PATCH 2/5] test release action --- .github/workflows/release-python.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index 108c3fa969..7d86860454 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -44,6 +44,7 @@ jobs: steps: - run: | env + echo "INPUTS? ${{inputs.dry_run}}" exit 1 - uses: mongodb-labs/drivers-github-tools/secure-checkout@v2 with: From ac6bbc712522c9f9398c4f8004270ca8594dca51 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 29 Jan 2025 09:03:50 -0600 Subject: [PATCH 3/5] test release action --- .github/workflows/release-python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index 7d86860454..0979ed4139 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -43,7 +43,7 @@ jobs: version: ${{ steps.pre-publish.outputs.version }} steps: - run: | - env + echo "DRY RUN? ${{ env.DRY_RUN}}" echo "INPUTS? ${{inputs.dry_run}}" exit 1 - uses: mongodb-labs/drivers-github-tools/secure-checkout@v2 From 448a2b513eefc4ec6ac9d85d7cb7008a09ae5402 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 29 Jan 2025 09:08:18 -0600 Subject: [PATCH 4/5] test release action --- .github/workflows/release-python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index 0979ed4139..ce858d7256 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -24,7 +24,7 @@ env: SILK_ASSET_GROUP: mongodb-python-driver EVERGREEN_PROJECT: mongo-python-driver # Constant - DRY_RUN: ${{ inputs.dry_run == 'true' }} + DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run || 'true' }} FOLLOWING_VERSION: ${{ inputs.following_version || '' }} VERSION: ${{ inputs.version || '10.10.10.10' }} From b7d11885a8b1fd1b6df3f7ce3fc8f5cc6fb904b0 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 29 Jan 2025 09:09:35 -0600 Subject: [PATCH 5/5] update cron --- .github/workflows/release-python.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index ce858d7256..2d37008cf7 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -14,7 +14,7 @@ on: default: false type: boolean schedule: - - cron: '30 5 * * *' + - cron: '*/5 * * * *' pull_request: env: @@ -42,10 +42,6 @@ jobs: outputs: version: ${{ steps.pre-publish.outputs.version }} steps: - - run: | - echo "DRY RUN? ${{ env.DRY_RUN}}" - echo "INPUTS? ${{inputs.dry_run}}" - exit 1 - uses: mongodb-labs/drivers-github-tools/secure-checkout@v2 with: app_id: ${{ vars.APP_ID }}