Skip to content

Commit f565708

Browse files
henilp105dependabot[bot]awvwgk
authored
Maintainance PR (#340)
* Bump sphinx-design from 0.3.0 to 0.4.1 Bumps [sphinx-design](https://github.com/executablebooks/sphinx-design) from 0.3.0 to 0.4.1. - [Release notes](https://github.com/executablebooks/sphinx-design/releases) - [Changelog](https://github.com/executablebooks/sphinx-design/blob/main/CHANGELOG.md) - [Commits](executablebooks/sphinx-design@v0.3.0...v0.4.1) --- updated-dependencies: - dependency-name: sphinx-design dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump EndBug/add-and-commit from 9.1.1 to 9.1.3 Bumps [EndBug/add-and-commit](https://github.com/EndBug/add-and-commit) from 9.1.1 to 9.1.3. - [Release notes](https://github.com/EndBug/add-and-commit/releases) - [Commits](EndBug/add-and-commit@v9.1.1...v9.1.3) --- updated-dependencies: - dependency-name: EndBug/add-and-commit dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Update conf.py * Update conf.py * Update conf.py * Update requirements.txt * Bump ablog from 0.11.2 to 0.11.4.post1 Bumps [ablog](https://github.com/abakan-zz/ablog) from 0.11.2 to 0.11.4.post1. - [Commits](https://github.com/abakan-zz/ablog/commits) --- updated-dependencies: - dependency-name: ablog dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * fix: the redirects * Update build.py * Update build.yml * fix: the redirects * Bump JamesIves/github-pages-deploy-action from 4.4.1 to 4.4.2 Bumps [JamesIves/github-pages-deploy-action](https://github.com/JamesIves/github-pages-deploy-action) from 4.4.1 to 4.4.2. - [Release notes](https://github.com/JamesIves/github-pages-deploy-action/releases) - [Commits](JamesIves/github-pages-deploy-action@v4.4.1...v4.4.2) --- updated-dependencies: - dependency-name: JamesIves/github-pages-deploy-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump pylint from 2.17.2 to 2.17.4 Bumps [pylint](https://github.com/PyCQA/pylint) from 2.17.2 to 2.17.4. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Commits](pylint-dev/pylint@v2.17.2...v2.17.4) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump sphinx-copybutton from 0.5.1 to 0.5.2 Bumps [sphinx-copybutton](https://github.com/executablebooks/sphinx-copybutton) from 0.5.1 to 0.5.2. - [Release notes](https://github.com/executablebooks/sphinx-copybutton/releases) - [Changelog](https://github.com/executablebooks/sphinx-copybutton/blob/master/CHANGELOG.md) - [Commits](executablebooks/sphinx-copybutton@v0.5.1...v0.5.2) --- updated-dependencies: - dependency-name: sphinx-copybutton dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump requests from 2.28.2 to 2.31.0 Bumps [requests](https://github.com/psf/requests) from 2.28.2 to 2.31.0. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](psf/requests@v2.28.2...v2.31.0) --- updated-dependencies: - dependency-name: requests dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump pre-commit from 3.2.2 to 3.3.3 Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 3.2.2 to 3.3.3. - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md) - [Commits](pre-commit/pre-commit@v3.2.2...v3.3.3) --- updated-dependencies: - dependency-name: pre-commit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump myst-parser from 1.0.0 to 2.0.0 Bumps [myst-parser](https://github.com/executablebooks/MyST-Parser) from 1.0.0 to 2.0.0. - [Release notes](https://github.com/executablebooks/MyST-Parser/releases) - [Changelog](https://github.com/executablebooks/MyST-Parser/blob/master/CHANGELOG.md) - [Commits](executablebooks/MyST-Parser@v1.0.0...v2.0.0) --- updated-dependencies: - dependency-name: myst-parser dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Update requirements.txt * Bump pydata-sphinx-theme from 0.9.0 to 0.13.3 Bumps [pydata-sphinx-theme](https://github.com/pydata/pydata-sphinx-theme) from 0.9.0 to 0.13.3. - [Release notes](https://github.com/pydata/pydata-sphinx-theme/releases) - [Commits](pydata/pydata-sphinx-theme@v0.9.0...v0.13.3) --- updated-dependencies: - dependency-name: pydata-sphinx-theme dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Update requirements.txt * Bump JamesIves/github-pages-deploy-action from 4.4.2 to 4.4.3 Bumps [JamesIves/github-pages-deploy-action](https://github.com/jamesives/github-pages-deploy-action) from 4.4.2 to 4.4.3. - [Release notes](https://github.com/jamesives/github-pages-deploy-action/releases) - [Commits](JamesIves/github-pages-deploy-action@v4.4.2...v4.4.3) --- updated-dependencies: - dependency-name: JamesIves/github-pages-deploy-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump pylint from 2.17.4 to 2.17.5 Bumps [pylint](https://github.com/pylint-dev/pylint) from 2.17.4 to 2.17.5. - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](pylint-dev/pylint@v2.17.4...v2.17.5) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump black from 23.3.0 to 23.7.0 Bumps [black](https://github.com/psf/black) from 23.3.0 to 23.7.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](psf/black@23.3.0...23.7.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * fix: code snippets build time with gfortran * Bump sphinx-sitemap from 2.5.0 to 2.5.1 Bumps [sphinx-sitemap](https://github.com/jdillard/sphinx-sitemap) from 2.5.0 to 2.5.1. - [Release notes](https://github.com/jdillard/sphinx-sitemap/releases) - [Changelog](https://github.com/jdillard/sphinx-sitemap/blob/master/CHANGELOG.rst) - [Commits](jdillard/sphinx-sitemap@v2.5.0...v2.5.1) --- updated-dependencies: - dependency-name: sphinx-sitemap dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump pre-commit from 3.3.3 to 3.4.0 Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 3.3.3 to 3.4.0. - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md) - [Commits](pre-commit/pre-commit@v3.3.3...v3.4.0) --- updated-dependencies: - dependency-name: pre-commit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump black from 23.7.0 to 23.9.1 Bumps [black](https://github.com/psf/black) from 23.7.0 to 23.9.1. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](psf/black@23.7.0...23.9.1) --- updated-dependencies: - dependency-name: black dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * refactor: fortran package * Maintainance PR * Maintainance PR * fix * fix * fix: * fix: * fix: * fix: * fix: * fix: --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sebastian Ehlert <[email protected]>
1 parent 1459d5f commit f565708

File tree

5 files changed

+30
-31
lines changed

5 files changed

+30
-31
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: Checkout page source
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626

2727
- name: Setup Python
2828
uses: actions/setup-python@v4

.github/workflows/closePR.yml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,45 @@
11
# Github action to cleanup a PR preview
2-
# Runs when a pull request is merged or comment contains '#delete_preview'
2+
# Runs on dispatch or weekly schedule and deletes closed PR previews that are older than 7 days
33
#
44

55
name: PR Preview Cleanup
66

77
on:
8-
issue_comment:
9-
types: [created]
10-
11-
pull_request:
12-
types:
13-
- closed
8+
workflow_dispatch:
9+
schedule:
10+
- cron: "0 3 * * 1"
1411

1512
jobs:
1613
build:
1714
runs-on: ubuntu-latest
18-
if: github.event.pull_request.merged == true || contains(github.event.comment.body, '#delete_preview')
1915

2016
steps:
21-
# Checkout existing gh-pages branch into PUBLISH_DIR
2217
- name: Checkout gh-pages
23-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
2419
with:
2520
ref: gh-pages
26-
27-
# Cleanup preview files
28-
- name: PR Cleanup
29-
run: rm -rf pr/${{github.event.issue.number}}
21+
22+
- name: Iterate and Check PRs
23+
run: |
24+
pr_folders=($(cd pr && ls -d */))
25+
closed_pr=()
26+
for pr_folder in "${pr_folders[@]}"; do
27+
pr_status=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
28+
-X GET "https://api.github.com/repos/${{ github.repository }}/pulls/${pr_folder::-1}" \
29+
| jq -r '.state')
30+
echo "PR ${pr_folder::-1} is $pr_status"
31+
if [ "$pr_status" != "open" ]; then
32+
rm -rf "pr/${pr_folder::-1}"
33+
closed_pr+=("${pr_folder::-1}")
34+
echo "Removed folder pr/${pr_folder::-1} for closed PR ${pr_folder::-1}"
35+
fi
36+
done
3037
3138
- name: Commit and push to gh-pages
3239
uses: EndBug/[email protected]
3340
with:
3441
committer_email: [email protected]
3542
committer_name: Fortran
36-
message: "Sphinx build cleanup pr/${{github.event.issue.number}}"
43+
message: "Sphinx build cleanup pr/${closed_pr[@]}"
3744
env:
3845
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
40-
# Comment on pull request
41-
- name: Comment on pull request
42-
uses: peter-evans/create-or-update-comment@v3
43-
if: contains(github.event.comment.body, '#delete_preview')
44-
with:
45-
issue-number: ${{github.event.issue.number}}
46-
body: The preview build for this PR has now been deleted.

.github/workflows/fortran_packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: checkout source
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818

1919
- name: Setup Python
2020
uses: actions/setup-python@v4

.github/workflows/preview_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout pr/${{github.event.issue.number}}
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Fetch pr/${{github.event.issue.number}}
2121
run: |

requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
Sphinx==6.2.1
1+
Sphinx==7.2.6
22
ablog==0.11.4.post1
33
pydata-sphinx-theme==0.9.0
44
myst-parser==2.0.0
5-
sphinx_design==0.4.1
5+
sphinx_design==0.5.0
66
sphinx_copybutton==0.5.2
77
sphinx-jinja==2.0.2
88
jinja2==3.1.2
99
requests==2.31.0
10-
black==23.7.0
10+
black==23.9.1
1111
pylint==2.17.5
12-
pre-commit==3.3.3
13-
sphinx-sitemap==2.5.0
12+
pre-commit==3.4.0
13+
sphinx-sitemap==2.5.1
1414
sphinx-favicon==1.0.1

0 commit comments

Comments
 (0)