Skip to content

Modular logistics and supply chain operating system (LSOS)

fix(ci): remove obsolete cloud PR workflow

Ronald A. Richardson91fe4860b133
diff --git a/.github/workflows/cloud.yml b/.github/workflows/cloud.yml
deleted file mode 100644
index 2f9d788d..00000000
--- a/.github/workflows/cloud.yml
+++ /dev/null
@@ -1,64 +0,0 @@
-name: "Enforce Cloud Promotion PRs"
-on:
- pull_request_target:
- types: [opened, reopened, synchronize, edited]
- branches:
- - cloud
- - cloud-qa
-
-permissions:
- contents: read
- pull-requests: write
-
-jobs:
- enforce_promotion_path:
- runs-on: ubuntu-latest
- timeout-minutes: 5
- steps:
- - name: Validate promotion path
- env:
- GH_TOKEN: ${{ github.token }}
- PR_BASE_REF: ${{ github.event.pull_request.base.ref }}
- PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
- PR_HEAD_REPOSITORY: ${{ github.event.pull_request.head.repo.full_name }}
- PR_NUMBER: ${{ github.event.pull_request.number }}
- REPOSITORY: ${{ github.repository }}
- run: |
- set -euo pipefail
-
- allowed=false
-
- if [[ "$PR_HEAD_REPOSITORY" == "$REPOSITORY" ]]; then
- case "$PR_BASE_REF" in
- cloud-qa)
- if [[ "$PR_HEAD_REF" == "main" ]]; then
- allowed=true
- fi
- ;;
- cloud)
- if [[ "$PR_HEAD_REF" == "cloud-qa" || "$PR_HEAD_REF" == "main" ]]; then
- allowed=true
- fi
- ;;
- esac
- fi
-
- if [[ "$allowed" == "true" ]]; then
- echo "Allowed promotion: $PR_HEAD_REPOSITORY:$PR_HEAD_REF -> $PR_BASE_REF"
- exit 0
- fi
-
- case "$PR_BASE_REF" in
- cloud-qa)
- message="This pull request was closed because cloud-qa only accepts promotions from the main branch in the fleetbase/fleetbase repository."
- ;;
- cloud)
- message="This pull request was closed because cloud only accepts promotions from the cloud-qa branch, or emergency promotions from main, in the fleetbase/fleetbase repository."
- ;;
- *)
- message="This pull request was closed because it does not follow the Fleetbase cloud promotion path."
- ;;
- esac
-
- gh pr comment "$PR_NUMBER" --repo "$REPOSITORY" --body "$message"
- gh pr close "$PR_NUMBER" --repo "$REPOSITORY"