From 4b8468a9f7581ed75207b71d23f9f9535005c64a Mon Sep 17 00:00:00 2001 From: Keenan Fiedler Date: Thu, 20 Jun 2024 11:59:11 -0400 Subject: [PATCH 1/6] Changed workflow and removed html file --- .github/workflows/make_html_from_notebook.yml | 11 +- .../01_EmLineGalaxies_SpectraStack.html | 9116 ----------------- 2 files changed, 8 insertions(+), 9119 deletions(-) delete mode 100644 EmLineGalaxies/01_EmLineGalaxies_SpectraStack.html diff --git a/.github/workflows/make_html_from_notebook.yml b/.github/workflows/make_html_from_notebook.yml index 7a319b9..653bd3d 100644 --- a/.github/workflows/make_html_from_notebook.yml +++ b/.github/workflows/make_html_from_notebook.yml @@ -6,7 +6,9 @@ on: # Trigger on PRs that change the notebooks in some way pull_request: branches: [main] - paths: "**.ipynb" + paths: + - "**.ipynb" + - "**.html" #pull_request_review: #types: [submitted] jobs: @@ -33,9 +35,12 @@ jobs: #Makes the list of changed files into only the list of changed notebooks, then runs and converts all notebooks run: | notebooks=() - for changed_file in ${{ steps.changes.outputs.added_modified }}; do + for changed_file in ${{ steps.changes.outputs.all }}; do if [[ "$changed_file" == *".ipynb" ]]; then notebooks+=("$changed_file") + elif [[ "$changed_file == *".html" ]]; then + striped="${changed_file%.*}.ipynb" + notebook+=("$striped") fi done echo "Changed files: ${notebooks[@]}" @@ -47,4 +52,4 @@ jobs: git config user.email github-actions@github.com git add -A git commit -m "Automated commit for HTML files" || exit 0 - git push + git push \ No newline at end of file diff --git a/EmLineGalaxies/01_EmLineGalaxies_SpectraStack.html b/EmLineGalaxies/01_EmLineGalaxies_SpectraStack.html deleted file mode 100644 index 43fe347..0000000 --- a/EmLineGalaxies/01_EmLineGalaxies_SpectraStack.html +++ /dev/null @@ -1,9116 +0,0 @@ - - - - - -01_EmLineGalaxies_SpectraStack - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
- - From 47c368c7aefffaa09048128c93733d9103d8bd16 Mon Sep 17 00:00:00 2001 From: Keenan Fiedler Date: Thu, 20 Jun 2024 12:01:00 -0400 Subject: [PATCH 2/6] small syntax mistake fixed --- .github/workflows/make_html_from_notebook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/make_html_from_notebook.yml b/.github/workflows/make_html_from_notebook.yml index 653bd3d..946f012 100644 --- a/.github/workflows/make_html_from_notebook.yml +++ b/.github/workflows/make_html_from_notebook.yml @@ -38,7 +38,7 @@ jobs: for changed_file in ${{ steps.changes.outputs.all }}; do if [[ "$changed_file" == *".ipynb" ]]; then notebooks+=("$changed_file") - elif [[ "$changed_file == *".html" ]]; then + elif [[ "$changed_file" == *".html" ]]; then striped="${changed_file%.*}.ipynb" notebook+=("$striped") fi From ebce1b91bfcbe37d6f38f84bf162fc7073a37ed9 Mon Sep 17 00:00:00 2001 From: Keenan Fiedler Date: Thu, 20 Jun 2024 12:02:17 -0400 Subject: [PATCH 3/6] Similar fix --- .github/workflows/make_html_from_notebook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/make_html_from_notebook.yml b/.github/workflows/make_html_from_notebook.yml index 946f012..a9c215e 100644 --- a/.github/workflows/make_html_from_notebook.yml +++ b/.github/workflows/make_html_from_notebook.yml @@ -40,7 +40,7 @@ jobs: notebooks+=("$changed_file") elif [[ "$changed_file" == *".html" ]]; then striped="${changed_file%.*}.ipynb" - notebook+=("$striped") + notebooks+=("$striped") fi done echo "Changed files: ${notebooks[@]}" From 2b2bbad9effffcefde1dabaa0e2b697096aee723 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 20 Jun 2024 16:03:28 +0000 Subject: [PATCH 4/6] Automated commit for HTML files --- .../01_EmLineGalaxies_SpectraStack.html | 9116 +++++++++++++++++ 1 file changed, 9116 insertions(+) create mode 100644 EmLineGalaxies/01_EmLineGalaxies_SpectraStack.html diff --git a/EmLineGalaxies/01_EmLineGalaxies_SpectraStack.html b/EmLineGalaxies/01_EmLineGalaxies_SpectraStack.html new file mode 100644 index 0000000..43fe347 --- /dev/null +++ b/EmLineGalaxies/01_EmLineGalaxies_SpectraStack.html @@ -0,0 +1,9116 @@ + + + + + +01_EmLineGalaxies_SpectraStack + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + From fb0ea00a6162546199d601ea7991b3fa3001a531 Mon Sep 17 00:00:00 2001 From: Keenan Fiedler Date: Thu, 20 Jun 2024 12:06:44 -0400 Subject: [PATCH 5/6] Fixed possible new edge case --- .github/workflows/make_html_from_notebook.yml | 8 +- .../01_EmLineGalaxies_SpectraStack.html | 9116 ----------------- .../02_EmLineGalaxies_Outliers.html | 8557 ---------------- 3 files changed, 7 insertions(+), 17674 deletions(-) delete mode 100644 EmLineGalaxies/01_EmLineGalaxies_SpectraStack.html delete mode 100644 EmLineGalaxies/02_EmLineGalaxies_Outliers.html diff --git a/.github/workflows/make_html_from_notebook.yml b/.github/workflows/make_html_from_notebook.yml index a9c215e..9748781 100644 --- a/.github/workflows/make_html_from_notebook.yml +++ b/.github/workflows/make_html_from_notebook.yml @@ -35,7 +35,7 @@ jobs: #Makes the list of changed files into only the list of changed notebooks, then runs and converts all notebooks run: | notebooks=() - for changed_file in ${{ steps.changes.outputs.all }}; do + for changed_file in ${{ steps.changes.outputs.added_modified }}; do if [[ "$changed_file" == *".ipynb" ]]; then notebooks+=("$changed_file") elif [[ "$changed_file" == *".html" ]]; then @@ -43,6 +43,12 @@ jobs: notebooks+=("$striped") fi done + for changed_file in ${{ steps.changes.outputs.removed }}; do + if [[ "$changed_file" == *".html" ]]; then + striped="${changed_file%.*}.ipynb" + notebooks+=("$striped") + fi + done echo "Changed files: ${notebooks[@]}" jupyter nbconvert --to html ${notebooks[@]} - name: Push and commit new HTML files diff --git a/EmLineGalaxies/01_EmLineGalaxies_SpectraStack.html b/EmLineGalaxies/01_EmLineGalaxies_SpectraStack.html deleted file mode 100644 index 43fe347..0000000 --- a/EmLineGalaxies/01_EmLineGalaxies_SpectraStack.html +++ /dev/null @@ -1,9116 +0,0 @@ - - - - - -01_EmLineGalaxies_SpectraStack - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
- - diff --git a/EmLineGalaxies/02_EmLineGalaxies_Outliers.html b/EmLineGalaxies/02_EmLineGalaxies_Outliers.html deleted file mode 100644 index 2a390f4..0000000 --- a/EmLineGalaxies/02_EmLineGalaxies_Outliers.html +++ /dev/null @@ -1,8557 +0,0 @@ - - - - - -02_EmLineGalaxies_Outliers - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - From c1134bfdbdd2f3ae571351e4b8fb64f26eb58ade Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 20 Jun 2024 16:07:27 +0000 Subject: [PATCH 6/6] Automated commit for HTML files --- .../01_EmLineGalaxies_SpectraStack.html | 9116 +++++++++++++++++ .../02_EmLineGalaxies_Outliers.html | 8557 ++++++++++++++++ 2 files changed, 17673 insertions(+) create mode 100644 EmLineGalaxies/01_EmLineGalaxies_SpectraStack.html create mode 100644 EmLineGalaxies/02_EmLineGalaxies_Outliers.html diff --git a/EmLineGalaxies/01_EmLineGalaxies_SpectraStack.html b/EmLineGalaxies/01_EmLineGalaxies_SpectraStack.html new file mode 100644 index 0000000..43fe347 --- /dev/null +++ b/EmLineGalaxies/01_EmLineGalaxies_SpectraStack.html @@ -0,0 +1,9116 @@ + + + + + +01_EmLineGalaxies_SpectraStack + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + diff --git a/EmLineGalaxies/02_EmLineGalaxies_Outliers.html b/EmLineGalaxies/02_EmLineGalaxies_Outliers.html new file mode 100644 index 0000000..2a390f4 --- /dev/null +++ b/EmLineGalaxies/02_EmLineGalaxies_Outliers.html @@ -0,0 +1,8557 @@ + + + + + +02_EmLineGalaxies_Outliers + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ +