You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by re...@apache.org on 2024/05/17 05:27:30 UTC
(flink-cdc) branch master updated: [FLINK-35386][cdc][docs] Build release-3.1 documentation and mark it as stable (#3330)
This is an automated email from the ASF dual-hosted git repository.
renqs pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-cdc.git
The following commit(s) were added to refs/heads/master by this push:
new 999027fbb [FLINK-35386][cdc][docs] Build release-3.1 documentation and mark it as stable (#3330)
999027fbb is described below
commit 999027fbb1bc02109e8a79ac25dd2a43c0483f84
Author: gongzhongqiang <go...@apache.org>
AuthorDate: Fri May 17 13:27:26 2024 +0800
[FLINK-35386][cdc][docs] Build release-3.1 documentation and mark it as stable (#3330)
---
.github/workflows/build_docs.yml | 23 +++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml
index 4925e028f..2cb24dd0d 100644
--- a/.github/workflows/build_docs.yml
+++ b/.github/workflows/build_docs.yml
@@ -30,24 +30,29 @@ on:
- release-*
schedule:
- cron: '0 0 * * *' # Deploy every day
+ workflow_dispatch:
concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
+ group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true
jobs:
-
- markdown-link-check:
+ check-documentation:
if: github.repository == 'apache/flink-cdc'
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@master
- - uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
+ - uses: actions/checkout@v3
+ - name: Check dead links
+ uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
with:
config-file: '.dlc.json'
+ - name: Build documentation
+ run: |
+ docker run --rm --volume "$PWD:/root/flink-cdc" chesnay/flink-ci:java_8_11_17_21_maven_386 bash -c "cd /root/flink-cdc && chmod +x ./.github/workflows/docs.sh && ./.github/workflows/docs.sh"
build-documentation:
if: github.event_name != 'pull_request' && github.repository == 'apache/flink-cdc'
+ name: "Check and build documentation"
runs-on: ubuntu-latest
strategy:
max-parallel: 1
@@ -55,6 +60,7 @@ jobs:
branch:
- master
- release-3.0
+ - release-3.1
steps:
- uses: actions/checkout@v3
@@ -69,10 +75,15 @@ jobs:
if [ "${currentBranch}" = "master" ]; then
echo "flink_alias=release-3.2" >> ${GITHUB_ENV}
- elif [ "${currentBranch}" = "release-3.0" ]; then
+ elif [ "${currentBranch}" = "release-3.1" ]; then
echo "flink_alias=stable" >> ${GITHUB_ENV}
fi
+ - name: Check dead links
+ uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
+ with:
+ config-file: '.dlc.json'
+
- name: Build documentation
run: |
docker run --rm --volume "$PWD:/root/flink-cdc" chesnay/flink-ci:java_8_11_17_21_maven_386 bash -c "cd /root/flink-cdc && chmod +x ./.github/workflows/docs.sh && ./.github/workflows/docs.sh"