forked from google/docsy-example
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from British-Oceanographic-Data-Centre/feature…
…/635-gitactions update gitactions and python version on workflows
- Loading branch information
Showing
7 changed files
with
24 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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/* | ||
|