Skip to content

Commit 5ccd70a

Browse files
committed
ci: change trigger
1 parent 264df14 commit 5ccd70a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/clean_deployments.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@
55
name: 🧼 Clean up environment deployments
66
on:
77
workflow_dispatch:
8-
workflow_call:
8+
9+
# To share the secrets between jobs for our Python Publish Action, we need to use
10+
# an environment which creates multiple deployments.
11+
# This action cleans up the GitHub PR when the deployments are
12+
# no longer needed.
13+
# Due to API limitations, we cant call this action from the Python Publish Action,
14+
# so we need to call this on each PR.
15+
pull_request:
916

1017
jobs:
1118
cleanup:

.github/workflows/python_publish.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ jobs:
3939
typo_check:
4040
uses: ./.github/workflows/typo.yml
4141

42-
# To share the secrets between jobs, we need to use an environment which creates
43-
# multiple deployments. This action cleans up the GitHub PR when the deployments are
44-
# no longer needed.
45-
clean_deployments:
46-
uses: ./.github/workflows/clean_deployments.yml
47-
4842
deploy_to_pypi:
4943
runs-on: ubuntu-latest
5044
needs: [unit_tests, static_analysis, format_check, typo_check]

0 commit comments

Comments
 (0)