-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: fixed the pydata-sphinx-theme version dependency * ix: language render and annotations * feat: added design updates to fix the UI * fix: multi lingual support * maintainance PR * cache builds to reduce build time * cache builds to reduce build time * fix cleanPR
- Loading branch information
Showing
4 changed files
with
57 additions
and
34 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 |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
python-version: "3.10" | ||
|
||
- name: Setup Fortran compiler | ||
uses: fortran-lang/[email protected].1 | ||
uses: fortran-lang/[email protected].3 | ||
id: setup-fortran | ||
with: | ||
compiler: gcc | ||
|
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 |
---|---|---|
|
@@ -22,20 +22,27 @@ jobs: | |
- name: Iterate and Check PRs | ||
id: pr_check | ||
run: | | ||
pr_folders=($(cd pr && ls -d */)) | ||
# Get the list of PR folders inside 'pr/' (e.g., pr/123, pr/456) | ||
pr_folders=($(find pr -mindepth 1 -maxdepth 1 -type d -printf "%f\n")) | ||
closed_pr=() | ||
for pr_folder in "${pr_folders[@]}"; do | ||
pr_status=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||
-X GET "https://api.github.com/repos/${{ github.repository }}/pulls/${pr_folder::-1}" \ | ||
| jq -r '.state') | ||
echo "PR ${pr_folder::-1} is $pr_status" | ||
if [ "$pr_status" != "open" ]; then | ||
rm -rf "pr/${pr_folder::-1}" | ||
closed_pr+=("${pr_folder::-1}") | ||
echo "Removed folder pr/${pr_folder::-1} for closed PR ${pr_folder::-1}" | ||
fi | ||
# Fetch PR status from GitHub API | ||
pr_status=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||
-X GET "https://api.github.com/repos/${{ github.repository }}/pulls/$pr_folder" | jq -r '.state') | ||
echo "PR $pr_folder is $pr_status" | ||
# Remove the folder if PR is closed | ||
if [[ "$pr_status" != "open" ]]; then | ||
rm -rf "pr/$pr_folder" | ||
closed_pr+=("$pr_folder") | ||
echo "Removed folder pr/$pr_folder for closed PR $pr_folder" | ||
fi | ||
done | ||
echo "${closed_pr[*]}" >> $GITHUB_STATE | ||
# Store closed PRs in GITHUB_STATE for later use | ||
echo "${closed_pr[*]}" >> "$GITHUB_STATE" | ||
- name: Commit and push to gh-pages | ||
uses: EndBug/[email protected] | ||
|
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
Sphinx==8.1.3 | ||
ablog==0.11.11 | ||
ablog==0.11.12 | ||
pydata-sphinx-theme==0.16.1 | ||
myst-parser==4.0.0 | ||
sphinx_design==0.6.1 | ||
sphinx_copybutton==0.5.2 | ||
sphinx-jinja==2.0.2 | ||
jinja2==3.1.4 | ||
jinja2==3.1.5 | ||
requests==2.32.3 | ||
black==24.10.0 | ||
black==25.1.0 | ||
pylint==3.3.4 | ||
pre-commit==4.0.1 | ||
pre-commit==4.1.0 | ||
sphinx-sitemap==2.6.0 | ||
sphinx-favicon==1.0.1 |