Skip to content

Commit bc847cd

Browse files
committed
Suppress "deployed to test-trigger-is" items on the PR timeline
The test-trigger-is environment exists only to gate the secrets used to trigger integration tests, not to track a real deployment. Referencing it made every PR and merge-group run post a "deployed to test-trigger-is" item on the pull request timeline. Set deployment: false so the jobs still get the environment's secrets and protection rules but no deployment object is created. Co-authored-by: Isaac
1 parent a676b0d commit bc847cd

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

.github/workflows/push.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,13 @@ jobs:
461461
checks: write
462462
contents: read
463463

464-
environment: "test-trigger-is"
464+
# Use the environment only to gate its secrets; skip creating a deployment
465+
# object so these runs don't post "deployed to test-trigger-is" items on the
466+
# pull request timeline. See:
467+
# https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/control-deployments#using-environments-without-deployments
468+
environment:
469+
name: "test-trigger-is"
470+
deployment: false
465471

466472
steps:
467473
- name: Generate GitHub App Token (check runs)
@@ -536,7 +542,13 @@ jobs:
536542
permissions:
537543
contents: read
538544

539-
environment: "test-trigger-is"
545+
# Use the environment only to gate its secrets; skip creating a deployment
546+
# object so these runs don't post "deployed to test-trigger-is" items on the
547+
# pull request timeline. See:
548+
# https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/control-deployments#using-environments-without-deployments
549+
environment:
550+
name: "test-trigger-is"
551+
deployment: false
540552

541553
steps:
542554
- name: Generate GitHub App Token

.github/workflows/start-integration-tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ jobs:
1313
group: databricks-deco-testing-runner-group
1414
labels: ubuntu-latest-deco
1515

16-
environment: "test-trigger-is"
16+
# Use the environment only to gate its secrets; skip creating a deployment
17+
# object so these runs don't post "deployed to test-trigger-is" items on the
18+
# pull request timeline. See:
19+
# https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/control-deployments#using-environments-without-deployments
20+
environment:
21+
name: "test-trigger-is"
22+
deployment: false
1723

1824
steps:
1925
- name: Generate GitHub App Token for Workflow Trigger

0 commit comments

Comments
 (0)