Skip to content

Commit

Permalink
Nightly: checkout correct branch of cylc-doc (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie authored Nov 2, 2023
1 parent de09658 commit 6d2e882
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 2
outputs:
meta-releases: ${{ steps.set-meta-releases.outputs.meta-releases }}
list: ${{ steps.set-meta-releases.outputs.meta-releases }}
dict: ${{ steps.set-meta-releases.outputs.meta-releases-dict }}

steps:
- name: install libs
id: set-meta-releases
- id: set-meta-releases
uses: cylc/release-actions/set-meta-releases@v1

deploy:
Expand All @@ -52,11 +53,13 @@ jobs:
strategy:
# run one job per meta-release
matrix:
meta_release: ${{ fromJson(needs.set-meta-releases.outputs.meta-releases) }}
meta_release: ${{ fromJson(needs.set-meta-releases.outputs.list) }}
# don't stop if one job fails
fail-fast: false
# only run one job at a time
max-parallel: 1
env:
META_DICT: ${{ needs.set-meta-releases.outputs.dict }}
steps:
- name: configure python
uses: actions/setup-python@v4
Expand All @@ -66,15 +69,14 @@ jobs:
- name: checkout cylc-doc
uses: actions/checkout@v4
with:
ref: ${{ fromJson(env.META_DICT)[matrix.meta_release]['cylc/cylc-doc'] }}
path: docs

- name: install dependencies
uses: ./docs/.github/actions/install-dependencies

- name: install cylc-doc
run: pip install "${{ github.workspace }}/docs[all]"

- name: install libs to document
id: install-libs
uses: cylc/release-actions/install-cylc-components@v1
with:
meta_release: ${{ matrix.meta_release }}
Expand Down

0 comments on commit 6d2e882

Please sign in to comment.