Skip to content

Commit dc4e65a

Browse files
authored
publish docs sequentially to avoid concurrency issues (openhab#489)
The docs for 5.41 and 5.42 haven't been published successfully, e.g. https://github.com/openhab/openhab-jruby/actions/runs/17933055669/job/50993850891 Hopefully this solves the problem. Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
1 parent fdbc33b commit dc4e65a

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ jobs:
7979
ref_name: main
8080
ref_type: branch
8181
publish_tag_docs:
82-
needs: release
82+
needs: publish_main_docs
8383
uses: ./.github/workflows/yardoc.yml
8484
with:
8585
ref_name: v${{needs.release.outputs.NEW_VERSION}}
8686
ref_type: tag
8787
publish_docs_versions:
88-
needs: publish_main_docs
88+
needs: publish_tag_docs
8989
runs-on: ubuntu-latest
9090
steps:
9191
- name: Checkout gh-pages
@@ -107,6 +107,6 @@ jobs:
107107
else
108108
git config --local user.name 'github-actions[bot]'
109109
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
110-
git commit -m "Update versions.js with new version v${{ env.NEW_VERSION }}"
110+
git commit -m "Update versions.js with new version v${{needs.release.outputs.NEW_VERSION}}"
111111
git push
112112
fi

.github/workflows/yardoc.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ jobs:
4343
- name: Determine Destination Dir
4444
id: destination_dir
4545
run: ruby -e 'ref_name = "${{ inputs.ref_name || github.ref_name }}"; ref_name = ref_name[1..-1].split(".")[0..1].join(".") if "${{ inputs.ref_type || github.ref_type }}" == "tag"; puts "DESTINATION_DIR=#{ref_name}"' >> $GITHUB_OUTPUT
46-
- name: Avoid race condition with push to main branch
47-
if: ${{ (inputs.ref_type || github.ref_type) == 'tag' }}
48-
run: sleep 15
4946
- name: Deploy
5047
uses: peaceiris/actions-gh-pages@v4
5148
with:

0 commit comments

Comments
 (0)