File tree Expand file tree Collapse file tree 2 files changed +22
-20
lines changed Expand file tree Collapse file tree 2 files changed +22
-20
lines changed Original file line number Diff line number Diff line change @@ -55,21 +55,21 @@ jobs:
55
55
# ./script/docs master --set-version master
56
56
./script/docs "$MAIN_REPO_BRANCH" --set-version "$MAIN_REPO_BRANCH"
57
57
58
- # - name: "Lint the markdown"
59
- # run: |
60
- # yarn lint-markdown
58
+ - name : " Lint the markdown"
59
+ run : |
60
+ yarn lint-markdown
61
61
62
- # - name: "Lint the styles"
63
- # run: |
64
- # yarn lint-styles
62
+ - name : " Lint the styles"
63
+ run : |
64
+ yarn lint-styles
65
65
66
- # - name: "Lint the scripts"
67
- # run: |
68
- # yarn lint-scripts
66
+ - name : " Lint the scripts"
67
+ run : |
68
+ yarn lint-scripts
69
69
70
- # - name: "Validate the links"
71
- # run: |
72
- # yarn lint-links
70
+ - name : " Validate the links"
71
+ run : |
72
+ yarn lint-links
73
73
74
74
- name : Build the Jekyll Site
75
75
env :
@@ -81,12 +81,12 @@ jobs:
81
81
# Build the jekyll site:
82
82
JEKYLL_ENV=development bundle exec jekyll build --baseurl '' --config _config.docs.yml --trace
83
83
84
- # - name: "Check all of the links"
85
- # run: |
86
- # script/links || true
87
- # echo 'checking reported links...'
88
- # echo "htmlproofer spit out a report of length: $(cat htmlproofer.out | wc -l)"
89
- # bb script/analyze_links.clj --htmlproofer-output htmlproofer.out
84
+ - name : " Check all of the links"
85
+ run : |
86
+ script/links || true
87
+ echo 'checking reported links...'
88
+ echo "htmlproofer spit out a report of length: $(cat htmlproofer.out | wc -l)"
89
+ bb script/analyze_links.clj --htmlproofer-output htmlproofer.out
90
90
91
91
- name : Authenticate Git with GITHUB_TOKEN
92
92
run : |
Original file line number Diff line number Diff line change 13
13
(defn categorize-branchname [branchname]
14
14
(cond
15
15
(= branchname " master" ) [:master ]
16
- (re-matches release-regex branchname) [:release (extract-release-num branchname)]))
16
+ (re-matches release-regex branchname) [:release (extract-release-num branchname)]
17
+ (str/starts-with? branchname " docs-workflow-test-" ) [:test branchname]))
17
18
18
19
(defn -main
19
20
" This is called from the `process_docs_changes.yml` workflow. It checks that
26
27
[category release-num] (categorize-branchname branchname)]
27
28
(case category
28
29
:master (println " Master branch detected." )
29
- :release (println " Release branch detected:" release-num)
30
+ :release (println " Release branch detected. Release number: " release-num)
31
+ :test (println " Test branch detected. Branchname: " branchname)
30
32
(do (println " Unpublishable branchname: " branchname)
31
33
(System/exit 1 )))))
32
34
You can’t perform that action at this time.
0 commit comments