1818 - uses : actions/checkout@v4
1919
2020 - name : Set current branch name
21- run : echo "LOCAL_REPO_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
21+ run : echo "LOCAL_REPO_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> " $GITHUB_ENV"
2222
2323 - name : echo branch name
2424 run : |
3535
3636 - name : Filter non-documented branches
3737 run : |
38- bb script/check_incoming_branchname.clj $MAIN_REPO_BRANCH
38+ bb script/check_incoming_branchname.clj " $MAIN_REPO_BRANCH"
3939
4040 - name : Install js dependencies
4141 run : yarn install --frozen-lockfile --prefer-offline
@@ -49,10 +49,12 @@ jobs:
4949 run : |
5050 bundle install
5151
52+ - name : Update docs for branchname
53+ run : |
54+ bb script/update_docs_for_branchname.clj "$MAIN_REPO_BRANCH"
55+
5256 - name : Update docs
5357 run : |
54- # ./script/docs-update
55- # ./script/docs master --set-version master
5658 ./script/docs "$MAIN_REPO_BRANCH" --set-version "$MAIN_REPO_BRANCH"
5759
5860 - name : " Lint the markdown"
@@ -81,21 +83,21 @@ jobs:
8183 # Build the jekyll site:
8284 JEKYLL_ENV=development bundle exec jekyll build --baseurl '' --config _config.docs.yml --trace
8385
84- - name : " Check all of the links "
86+ - name : Run metabase.com-aware link checks
8587 run : |
8688 script/links || true
8789 echo 'checking reported links...'
88- echo "htmlproofer spit out a report of length: $(cat htmlproofer.out | wc -l)"
90+ echo "htmlproofer spit out a report of length: $(wc -l < htmlproofer.out )"
8991 bb script/analyze_links.clj --htmlproofer-output htmlproofer.out
9092
91- - name : Authenticate Git with GITHUB_TOKEN
93+ - name : Setup Git Authenticatation
9294 run : |
9395 git config --global user.name "Metabase Docs bot"
9496 git config --global user.email "metabase-bot@metabase.com"
9597 git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/metabase/docs.metabase.github.io.git"
9698
97- - name : Create the pull request
99+ - name : Update or Create the Pull Request
98100 env :
99101 GH_TOKEN : ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}
100102 run : |
101- bb script/update_or_create_pr.clj $MAIN_REPO_BRANCH
103+ bb script/update_or_create_pr.clj " $MAIN_REPO_BRANCH"
0 commit comments