Skip to content

Commit

Permalink
Merge pull request #99 from British-Oceanographic-Data-Centre/feature…
Browse files Browse the repository at this point in the history
…/635-gitactions

update gitactions and python version on workflows
  • Loading branch information
jpolton authored Nov 15, 2023
2 parents febb445 + bdee135 commit 09f65ae
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 23 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docstrings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout site
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive # Fetch Hugo themes and all extra projects
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
path: site

- name: Checkout coast
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: British-Oceanographic-Data-Centre/COAsT
ref: develop
path: external

- name: add python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.10

- name: covert docstrings
run: |
Expand All @@ -44,6 +44,7 @@ jobs:
git config --global user.email "[email protected]"
git config --global author.email "[email protected]"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git fetch origin
git checkout develop
git pull
[ ! -f content/en/docs/Reference/index.md ] || mv content/en/docs/Reference/index.md content/en/docs/Reference/index_class.md
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive # Fetch Hugo themes and all extra projects
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
Expand All @@ -21,7 +21,7 @@ jobs:
extended: true

- name: Setup nodejs
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 12

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/markdown-altimetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
shell: bash -l {0}
steps:
- name: Checkout site
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive # Fetch Hugo themes and all extra projects
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
path: site

- name: Checkout coast
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: British-Oceanographic-Data-Centre/COAsT
ref: develop
Expand All @@ -32,7 +32,6 @@ jobs:
with:
activate-environment: coast
environment-file: external/environment.yml
python-version: 3.8.10
- name: prep exec notebooks
run: |
conda info
Expand Down Expand Up @@ -67,6 +66,7 @@ jobs:
git config --global user.email "[email protected]"
git config --global author.email "[email protected]"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git fetch origin
git checkout develop
git pull
git add content/en/docs/Examples/Notebooks/Altimetry/*
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/markdown-general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
shell: bash -l {0}
steps:
- name: Checkout site
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive # Fetch Hugo themes and all extra projects
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
path: site

- name: Checkout coast
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: British-Oceanographic-Data-Centre/COAsT
ref: develop
Expand All @@ -31,7 +31,6 @@ jobs:
with:
activate-environment: coast
environment-file: external/environment.yml
python-version: 3.8.10
- name: prep exec notebooks
run: |
conda info
Expand Down Expand Up @@ -69,8 +68,9 @@ jobs:
git config --global user.email "[email protected]"
git config --global author.email "[email protected]"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git fetch origin
git checkout develop
git pull
git pull
git add content/en/docs/Examples/Notebooks/General/*
git add static/*
git commit -am "Updated General notebook pages from coast repo."
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/markdown-gridded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
shell: bash -l {0}
steps:
- name: Checkout site
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive # Fetch Hugo themes and all extra projects
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
path: site

- name: Checkout coast
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: British-Oceanographic-Data-Centre/COAsT
ref: develop
Expand All @@ -31,7 +31,6 @@ jobs:
with:
activate-environment: coast
environment-file: external/environment.yml
python-version: 3.8.10
- name: prep exec notebooks
run: |
conda info
Expand Down Expand Up @@ -71,8 +70,9 @@ jobs:
git config --global user.email "[email protected]"
git config --global author.email "[email protected]"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git fetch origin
git checkout develop
git pull
git pull
git add content/en/docs/Examples/Notebooks/Gridded/*
git add static/*
git commit -am "Updated Gridded notebook pages from coast repo."
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/markdown-profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
shell: bash -l {0}
steps:
- name: Checkout site
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive # Fetch Hugo themes and all extra projects
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
path: site

- name: Checkout coast
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: British-Oceanographic-Data-Centre/COAsT
ref: develop
Expand All @@ -31,7 +31,6 @@ jobs:
with:
activate-environment: coast
environment-file: external/environment.yml
python-version: 3.8.10
- name: prep exec notebooks
run: |
conda info
Expand Down Expand Up @@ -64,6 +63,7 @@ jobs:
git config --global user.email "[email protected]"
git config --global author.email "[email protected]"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git fetch origin
git checkout develop
git pull
git add content/en/docs/Examples/Notebooks/Profile/*
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/markdown-tidegauge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
shell: bash -l {0}
steps:
- name: Checkout site
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive # Fetch Hugo themes and all extra projects
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
path: site

- name: Checkout coast
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: British-Oceanographic-Data-Centre/COAsT
ref: develop
Expand All @@ -31,7 +31,6 @@ jobs:
with:
activate-environment: coast
environment-file: external/environment.yml
python-version: 3.8.10
- name: prep exec notebooks
run: |
conda info
Expand Down Expand Up @@ -67,6 +66,7 @@ jobs:
git config --global user.email "[email protected]"
git config --global author.email "[email protected]"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git fetch origin
git checkout develop
git pull
git add content/en/docs/Examples/Notebooks/Tidegauge/*
Expand Down

0 comments on commit 09f65ae

Please sign in to comment.