Skip to content

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

docs - one workflow to update docs (#84657)

Jeff Bruemmerad9196715081
diff --git a/.github/workflows/docs-release-generate.yml b/.github/workflows/docs-generate.yml
similarity index 72%
rename from .github/workflows/docs-release-generate.yml
rename to .github/workflows/docs-generate.yml
index cd2c8f8a94a..e88f6244ff1 100644
--- a/.github/workflows/docs-release-generate.yml
+++ b/.github/workflows/docs-generate.yml
@@ -1,24 +1,24 @@
-name: Auto-update documentation (release)
+name: Auto-update documentation
on:
schedule:
- - cron: "0 22 * * 1-5" # Every Monday through Friday at 10 PM UTC
+ - cron: "0 1 * * 1-5" # Every Monday through Friday at 1 AM UTC (5 PM PST)
workflow_dispatch:
inputs:
target_branch:
- description: "Target branch for documentation update. Leave empty for every release branch below."
+ description: "Target branch for documentation update. Leave empty for every branch below."
required: false
default: ""
type: string
jobs:
- update-release-docs:
+ update-docs:
if: ${{ github.event_name != 'schedule' || github.repository == 'metabase/metabase' }}
name: Call documentation update for ${{ matrix.target_branch }}
strategy:
fail-fast: false
matrix:
- target_branch: ${{ fromJSON(inputs.target_branch && format('["{0}"]', inputs.target_branch) || '["release-x.64.x", "release-x.65.x"]') }}
+ target_branch: ${{ fromJSON(inputs.target_branch && format('["{0}"]', inputs.target_branch) || '["master", "release-x.64.x", "release-x.65.x"]') }}
uses: ./.github/workflows/docs-generate-base.yml
with:
target_branch: ${{ matrix.target_branch }}
diff --git a/.github/workflows/docs-master-generate.yml b/.github/workflows/docs-master-generate.yml
deleted file mode 100644
index d0ccb90f842..00000000000
--- a/.github/workflows/docs-master-generate.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-name: Auto-update documentation (master)
-
-on:
- schedule:
- - cron: "0 21 * * 1-5" # Every Monday through Friday at 9 PM UTC
- workflow_dispatch:
-
-jobs:
- update-master-docs:
- if: ${{ github.event_name != 'schedule' || github.repository == 'metabase/metabase' }}
- name: Call documentation update for master
- uses: ./.github/workflows/docs-generate-base.yml
- with:
- target_branch: "master"
- secrets:
- automation_token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}