30
30
- release-*
31
31
schedule :
32
32
- cron : ' 0 0 * * *' # Deploy every day
33
+ workflow_dispatch :
33
34
34
35
concurrency :
35
- group : ${{ github.workflow }}-${{ github.ref }}
36
+ group : ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
36
37
cancel-in-progress : true
37
38
38
39
jobs :
39
-
40
- markdown-link-check :
40
+ check-documentation :
41
41
if : github.repository == 'apache/flink-cdc'
42
42
runs-on : ubuntu-latest
43
43
steps :
44
- - uses : actions/checkout@master
45
- -
uses :
gaurav-nelson/[email protected]
44
+ - uses : actions/checkout@v3
45
+ - name : Check dead links
46
+ uses :
gaurav-nelson/[email protected]
46
47
with :
47
48
config-file : ' .dlc.json'
49
+ - name : Build documentation
50
+ run : |
51
+ 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"
48
52
49
53
build-documentation :
50
54
if : github.event_name != 'pull_request' && github.repository == 'apache/flink-cdc'
55
+ name : " Check and build documentation"
51
56
runs-on : ubuntu-latest
52
57
strategy :
53
58
max-parallel : 1
54
59
matrix :
55
60
branch :
56
61
- master
57
62
- release-3.0
63
+ - release-3.1
58
64
59
65
steps :
60
66
- uses : actions/checkout@v3
@@ -69,10 +75,15 @@ jobs:
69
75
70
76
if [ "${currentBranch}" = "master" ]; then
71
77
echo "flink_alias=release-3.2" >> ${GITHUB_ENV}
72
- elif [ "${currentBranch}" = "release-3.0 " ]; then
78
+ elif [ "${currentBranch}" = "release-3.1 " ]; then
73
79
echo "flink_alias=stable" >> ${GITHUB_ENV}
74
80
fi
75
81
82
+ - name : Check dead links
83
+ uses :
gaurav-nelson/[email protected]
84
+ with :
85
+ config-file : ' .dlc.json'
86
+
76
87
- name : Build documentation
77
88
run : |
78
89
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"
0 commit comments