Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

remove docs workflows (#64486)

Jeff Bruemmer1e5fba41ed34
diff --git a/.github/workflows/docs_bump_detected.yml b/.github/workflows/docs_bump_detected.yml
deleted file mode 100644
index 100363b52b3..00000000000
--- a/.github/workflows/docs_bump_detected.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-name: Docs Bump Detected
-
-on:
- pull_request_target:
- types:
- - opened
- - synchronize
- - reopened
- branches:
- - 'master'
- - 'release-x.[0-9]+.x'
- paths:
- - 'docs/**'
-
-jobs:
- push_workflow_to_docs_metabase_github_io_job:
- runs-on: ubuntu-latest
- env:
- SOURCE_BRANCH: ${{ github.head_ref || github.ref }}
- TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}
- PR_NUMBER: ${{ github.event.pull_request.number }}
- steps:
- - name: Report changed docs files exist
- run: |
- echo "A PR with changes in the docs directory was detected."
- echo "Sending workflow trigger to create/update the corresponding PR in docs repo."
- echo "source branch: $SOURCE_BRANCH"
- echo "target branch: $TARGET_BRANCH"
- echo "pr number: $PR_NUMBER"
-
- - name: Trigger repo dispatch
- uses: actions/github-script@v7
- with:
- github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}
- script: | #js
- github.rest.repos.createDispatchEvent({
- owner: "${{ github.repository_owner }}",
- repo: "docs.metabase.github.io",
- event_type: "docs_update",
- client_payload: {
- dispatch_type: "docs_update",
- source_branch: process.env.SOURCE_BRANCH,
- target_branch: process.env.TARGET_BRANCH,
- pr_number: process.env.PR_NUMBER}});
diff --git a/.github/workflows/docs_close_detected.yml b/.github/workflows/docs_close_detected.yml
deleted file mode 100644
index 85dc63c9829..00000000000
--- a/.github/workflows/docs_close_detected.yml
+++ /dev/null
@@ -1,43 +0,0 @@
-name: Docs Close Detected
-
-on:
- pull_request:
- types:
- - closed
- branches:
- - 'master'
- - 'release-x.[0-9]+.x'
- paths:
- - 'docs/**'
-
-jobs:
- push_and_merge_workflow_to_docs_metabase_github_io_job:
- if: github.event.pull_request.merged == false
- runs-on: ubuntu-latest
- env:
- SOURCE_BRANCH: ${{ github.head_ref || github.ref }}
- TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}
- PR_NUMBER: ${{ github.event.pull_request.number }}
- steps:
- - name: Report changed docs files exist
- run: |
- echo "A PR with changes to the docs directory was closed."
- echo "Sending workflow trigger to close corresponding PR in docs repo."
- echo "source branch: $SOURCE_BRANCH"
- echo "target branch: $TARGET_BRANCH"
- echo "pr number: $PR_NUMBER"
-
- - name: Trigger repo dispatch
- uses: actions/github-script@v7
- with:
- github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}
- script: | #js
- github.rest.repos.createDispatchEvent({
- owner: "${{ github.repository_owner }}",
- repo: "docs.metabase.github.io",
- event_type: "docs_close",
- client_payload: {
- dispatch_type: "docs_close",
- source_branch: process.env.SOURCE_BRANCH,
- target_branch: process.env.TARGET_BRANCH,
- pr_number: process.env.PR_NUMBER}});
diff --git a/.github/workflows/docs_merge_detected.yml b/.github/workflows/docs_merge_detected.yml
deleted file mode 100644
index c413a09cdb9..00000000000
--- a/.github/workflows/docs_merge_detected.yml
+++ /dev/null
@@ -1,43 +0,0 @@
-name: Docs Merge Detected
-
-on:
- pull_request:
- types:
- - closed
- branches:
- - 'master'
- - 'release-x.[0-9]+.x'
- paths:
- - 'docs/**'
-
-jobs:
- push_and_merge_workflow_to_docs_metabase_github_io_job:
- if: github.event.pull_request.merged == true
- runs-on: ubuntu-latest
- env:
- SOURCE_BRANCH: ${{ github.head_ref || github.ref }}
- TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}
- PR_NUMBER: ${{ github.event.pull_request.number }}
- steps:
- - name: Report changed docs files exist
- run: |
- echo "A PR with changes to the docs directory was merged."
- echo "Sending workflow trigger to merge corresponding PR in docs repo."
- echo "source branch: $SOURCE_BRANCH"
- echo "target branch: $TARGET_BRANCH"
- echo "pr number: $PR_NUMBER"
-
- - name: Trigger repo dispatch
- uses: actions/github-script@v7
- with:
- github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}
- script: | #js
- github.rest.repos.createDispatchEvent({
- owner: "${{ github.repository_owner }}",
- repo: "docs.metabase.github.io",
- event_type: "docs_merge",
- client_payload: {
- dispatch_type: "docs_merge",
- source_branch: process.env.SOURCE_BRANCH,
- target_branch: process.env.TARGET_BRANCH,
- pr_number: process.env.PR_NUMBER}});