Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Set deployment: false on environment jobs that do not deploy (#7562)

Anthony Stirling6f7f28946c66
diff --git a/.github/workflows/PR-Auto-Deploy-V2.yml b/.github/workflows/PR-Auto-Deploy-V2.yml
index 0f07aabbe5..4375b1b8b0 100644
--- a/.github/workflows/PR-Auto-Deploy-V2.yml
+++ b/.github/workflows/PR-Auto-Deploy-V2.yml
@@ -462,7 +462,10 @@ jobs:
});
cleanup-v2-deployment:
- environment: pr-preview
+ # Tearing a preview down is not a deployment - no deployment object.
+ environment:
+ name: pr-preview
+ deployment: false
if: github.event.action == 'closed'
runs-on: ubuntu-latest
permissions:
diff --git a/.github/workflows/PR-Demo-cleanup.yml b/.github/workflows/PR-Demo-cleanup.yml
index 1407939994..098f8d7803 100644
--- a/.github/workflows/PR-Demo-cleanup.yml
+++ b/.github/workflows/PR-Demo-cleanup.yml
@@ -9,7 +9,10 @@ permissions:
jobs:
cleanup:
- environment: pr-preview
+ # Tearing a preview down is not a deployment - no deployment object.
+ environment:
+ name: pr-preview
+ deployment: false
if: github.event.action == 'closed'
runs-on: ubuntu-latest
permissions:
diff --git a/.github/workflows/backend-build.yml b/.github/workflows/backend-build.yml
index 6623940bce..596be96e8c 100644
--- a/.github/workflows/backend-build.yml
+++ b/.github/workflows/backend-build.yml
@@ -20,7 +20,9 @@ permissions:
jobs:
build:
- environment: ci-unsigned
+ environment:
+ name: ci-unsigned
+ deployment: false
runs-on: ubuntu-latest
strategy:
fail-fast: false
diff --git a/.github/workflows/build-enterprise.yml b/.github/workflows/build-enterprise.yml
index b4a8373ccc..194d86d9da 100644
--- a/.github/workflows/build-enterprise.yml
+++ b/.github/workflows/build-enterprise.yml
@@ -42,7 +42,9 @@ jobs:
uses: ./.github/workflows/_runner-pick.yml
playwright-e2e-enterprise:
- environment: ci-unsigned
+ environment:
+ name: ci-unsigned
+ deployment: false
needs: pick
# Skip on fork PRs / untrusted authors: they have no PREMIUM_KEY_ENTERPRISE,
# so the suite can't boot premium and would fail. See the header comment.
@@ -325,7 +327,9 @@ jobs:
# Multi-node regression: builds + seeds the clustered stack (testing/compose/docker-compose-multinode.yml)
# and runs behave features/multinode. Licence-gated, so it runs after the Playwright job (not in parallel).
multinode-e2e:
- environment: ci-unsigned
+ environment:
+ name: ci-unsigned
+ deployment: false
needs: [pick, playwright-e2e-enterprise]
# Nightly cron + manual dispatch only (heavy build), fork-gated for the licence secret.
if: >-
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 566262d24f..1feaff2560 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -61,7 +61,9 @@ jobs:
filters: .github/config/.files.yaml
gradle-cache-prime:
- environment: ci-unsigned
+ environment:
+ name: ci-unsigned
+ deployment: false
name: Prime shared Gradle cache
needs: [files-changed]
runs-on: ubuntu-latest
diff --git a/.github/workflows/check-licence.yml b/.github/workflows/check-licence.yml
index 17c64d5c64..4e04a83656 100644
--- a/.github/workflows/check-licence.yml
+++ b/.github/workflows/check-licence.yml
@@ -10,7 +10,9 @@ permissions:
jobs:
check-licence:
- environment: ci-unsigned
+ environment:
+ name: ci-unsigned
+ deployment: false
runs-on: ubuntu-latest
steps:
- name: Harden Runner
diff --git a/.github/workflows/check-openapi.yml b/.github/workflows/check-openapi.yml
index ed83447335..bc9b302857 100644
--- a/.github/workflows/check-openapi.yml
+++ b/.github/workflows/check-openapi.yml
@@ -11,7 +11,9 @@ permissions:
jobs:
check-generate-openapi-docs:
- environment: ci-unsigned
+ environment:
+ name: ci-unsigned
+ deployment: false
runs-on: ubuntu-latest
steps:
- name: Harden Runner
diff --git a/.github/workflows/db-migration-test.yml b/.github/workflows/db-migration-test.yml
index ccb46d3988..785073944e 100644
--- a/.github/workflows/db-migration-test.yml
+++ b/.github/workflows/db-migration-test.yml
@@ -13,7 +13,9 @@ permissions:
jobs:
migration-test:
- environment: ci-unsigned
+ environment:
+ name: ci-unsigned
+ deployment: false
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
diff --git a/.github/workflows/docker-compose-tests.yml b/.github/workflows/docker-compose-tests.yml
index 039c73e5db..439d4240b2 100644
--- a/.github/workflows/docker-compose-tests.yml
+++ b/.github/workflows/docker-compose-tests.yml
@@ -17,7 +17,9 @@ permissions:
jobs:
docker-compose-tests:
- environment: ci-unsigned
+ environment:
+ name: ci-unsigned
+ deployment: false
runs-on: ubuntu-latest
permissions:
actions: write
diff --git a/.github/workflows/e2e-live.yml b/.github/workflows/e2e-live.yml
index 43d66dd1cf..844d26a3d1 100644
--- a/.github/workflows/e2e-live.yml
+++ b/.github/workflows/e2e-live.yml
@@ -11,7 +11,9 @@ permissions:
jobs:
playwright-e2e-live:
- environment: ci-unsigned
+ environment:
+ name: ci-unsigned
+ deployment: false
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
diff --git a/.github/workflows/frontend-backend-licenses-update.yml b/.github/workflows/frontend-backend-licenses-update.yml
index 7fd0136718..9aef2316d2 100644
--- a/.github/workflows/frontend-backend-licenses-update.yml
+++ b/.github/workflows/frontend-backend-licenses-update.yml
@@ -43,7 +43,9 @@ jobs:
generate-frontend-license-report:
# ci-bot, not bot-identity: this job runs on PRs too, and bot-identity is main-only.
- environment: ci-bot
+ environment:
+ name: ci-bot
+ deployment: false
if: needs.files-changed.outputs.licenses-frontend == 'true'
name: Generate Frontend License Report
needs: files-changed
@@ -319,7 +321,9 @@ jobs:
generate-backend-license-report:
# ci-bot, not bot-identity: this job runs on PRs too, and bot-identity is main-only.
- environment: ci-bot
+ environment:
+ name: ci-bot
+ deployment: false
if: needs.files-changed.outputs.licenses-backend == 'true'
needs: files-changed
name: Generate Backend License Report
diff --git a/.github/workflows/multiOSReleases.yml b/.github/workflows/multiOSReleases.yml
index 0f0b2d3585..0ac94ffe68 100644
--- a/.github/workflows/multiOSReleases.yml
+++ b/.github/workflows/multiOSReleases.yml
@@ -38,7 +38,9 @@ permissions:
jobs:
determine-matrix:
- environment: ci-unsigned
+ environment:
+ name: ci-unsigned
+ deployment: false
if: ${{ vars.CI_PROFILE != 'lite' }}
runs-on: ubuntu-latest
outputs:
@@ -116,7 +118,9 @@ jobs:
env:
INPUT_PLATFORM: ${{ github.event.inputs.platform }}
build-jars:
- environment: ci-unsigned
+ environment:
+ name: ci-unsigned
+ deployment: false
needs: determine-matrix
runs-on: ubuntu-latest
strategy:
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index c92d17f027..65c25b7b66 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -127,7 +127,9 @@ jobs:
# Runs the @nightly tag (conversion scenarios) plus a 10-shard concurrency run
# of every other feature.
cucumber-nightly:
- environment: ci-unsigned
+ environment:
+ name: ci-unsigned
+ deployment: false
name: Cucumber (nightly scenarios + full concurrency)
runs-on: ubuntu-latest
# Fork pull requests get no MAVEN_* secrets, so the image build cannot work.
diff --git a/.github/workflows/tauri-build.yml b/.github/workflows/tauri-build.yml
index e3f3122773..0a82647690 100644
--- a/.github/workflows/tauri-build.yml
+++ b/.github/workflows/tauri-build.yml
@@ -63,7 +63,9 @@ jobs:
determine-matrix:
# Only probes APPLE_CERTIFICATE for presence, so it stays on the unrestricted
# signing environment - release-signing would block every PR run.
- environment: ci-signing
+ environment:
+ name: ci-signing
+ deployment: false
if: ${{ vars.CI_PROFILE != 'lite' }}
runs-on: ubuntu-latest
outputs:
diff --git a/.github/workflows/test-build-docker.yml b/.github/workflows/test-build-docker.yml
index 12d5a35a1f..37cb7cb546 100644
--- a/.github/workflows/test-build-docker.yml
+++ b/.github/workflows/test-build-docker.yml
@@ -37,7 +37,9 @@ jobs:
# spring-security=true matrix entry if `task backend:build` and
# `task backend:build:ci` produce equivalent JARs (verify before wiring).
test-build-docker-images:
- environment: ci-unsigned
+ environment:
+ name: ci-unsigned
+ deployment: false
runs-on: ubuntu-latest
strategy:
fail-fast: false