Skip to content

Commit

Permalink
[CI] Fix typo in GitHub context variable in documentation deploy pipe…
Browse files Browse the repository at this point in the history
…line (#1194)

* fix typo in github context variable

* split between test and doc runners for Linux
  • Loading branch information
NicolasGensollen authored May 27, 2024
1 parent de492f9 commit ebe1b7a
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ concurrency:
env:
POETRY_VERSION: '1.6.1'
PYTHON_VERSION: '3.10'
BRANCH_NAME: "PR-${{ github.event.number }}"

jobs:
build-and-deploy-doc:
runs-on:
- self-hosted
- Linux
- doc
- doc-runner
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
Expand All @@ -38,14 +37,13 @@ jobs:
make doc
- name: Deploy documentation
run: |
echo "${GITHUB_REF}"
echo "${PR_NUMBER}"
echo "${{ github.ref_name }}"
echo "${{ github.head_ref }}"
if [[ ! -z "${{ github.event_number }}" ]];
if [[ -z "${{ github.event.number }}" ]];
then
BRANCH_NAME="${{ github.ref_name }}"
else
BRANCH_NAME="PR-${{ github.event.number }}"
fi
echo $BRANCH_NAME
mv site "${BRANCH_NAME}"
ls "${BRANCH_NAME}"
scp -r "${BRANCH_NAME}" "aramislab:/srv/local/clinica/docs/public/${BRANCH_NAME}"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_converters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
runs-on:
- self-hosted
- Linux
- test-runner
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_instantiation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
runs-on:
- self-hosted
- Linux
- test-runner
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_non_regression_fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
runs-on:
- self-hosted
- Linux
- test-runner
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_pipelines_anat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
runs-on:
- self-hosted
- Linux
- test-runner
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -99,6 +100,7 @@ jobs:
runs-on:
- self-hosted
- Linux
- test-runner
timeout-minutes: 720
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_pipelines_anat_freesurfer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
runs-on:
- self-hosted
- Linux
- test-runner
timeout-minutes: 1440
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_pipelines_dwi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
runs-on:
- self-hosted
- Linux
- test-runner
timeout-minutes: 720
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_pipelines_dwi_preprocessing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
runs-on:
- self-hosted
- Linux
- test-runner
timeout-minutes: 720
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -98,6 +99,7 @@ jobs:
runs-on:
- self-hosted
- Linux
- test-runner
timeout-minutes: 720
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_pipelines_pet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
runs-on:
- self-hosted
- Linux
- test-runner
timeout-minutes: 720
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit ebe1b7a

Please sign in to comment.