From f279ab1e82336724bed5e94735240d4e0f09e44a Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Tue, 13 May 2025 17:26:08 -0700 Subject: [PATCH 1/7] Test action --- .github/workflows/test_action.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/test_action.yaml diff --git a/.github/workflows/test_action.yaml b/.github/workflows/test_action.yaml new file mode 100644 index 0000000..8e8afb7 --- /dev/null +++ b/.github/workflows/test_action.yaml @@ -0,0 +1,20 @@ +name: Test Action +on: [push, pull_request] + +jobs: + generate_data: + runs-on: ubuntu-latest + name: Generate version data + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Generate version data + uses: ./ # Uses an action in the root directory + - name: Check file contents + run: | + echo "Contents of chart.md:" + cat chart.md + echo "Contents of schedule.json:" + cat schedule.json + echo "Contents of schedule.md:" + cat schedule.md From 7fc6c19a7f2869fc6513f2326a84e678a6c4b4c7 Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Tue, 13 May 2025 17:28:27 -0700 Subject: [PATCH 2/7] add packaging --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 69de461..acf6492 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ pandas requests +packaging \ No newline at end of file From 315cc5d589bd51eb509a4badf8322ccc52aef64b Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Tue, 13 May 2025 17:31:47 -0700 Subject: [PATCH 3/7] Add more linebreaks --- .github/workflows/test_action.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test_action.yaml b/.github/workflows/test_action.yaml index 8e8afb7..8499640 100644 --- a/.github/workflows/test_action.yaml +++ b/.github/workflows/test_action.yaml @@ -8,13 +8,15 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Generate version data - uses: ./ # Uses an action in the root directory + - name: Generate version data using local action + uses: ./ - name: Check file contents run: | - echo "Contents of chart.md:" + printf "Contents of chart.md:\n" cat chart.md - echo "Contents of schedule.json:" + printf "\n\n" + printf "Contents of schedule.json:\n" cat schedule.json - echo "Contents of schedule.md:" + printf "\n\n" + printf "Contents of schedule.md:\n" cat schedule.md From 067f9613f5363226b0f4189b778595cd08a66e7f Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Tue, 13 May 2025 17:31:56 -0700 Subject: [PATCH 4/7] add dependabot --- .github/dependabot.yml | 6 ++++++ requirements.txt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5ace460 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/requirements.txt b/requirements.txt index acf6492..4031c46 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ pandas requests -packaging \ No newline at end of file +packaging From a773baab3041969fd651f497c4edc23bd55a26d1 Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Tue, 13 May 2025 17:35:34 -0700 Subject: [PATCH 5/7] Fix upload --- action.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/action.yaml b/action.yaml index 8d40d8e..3374192 100644 --- a/action.yaml +++ b/action.yaml @@ -16,8 +16,11 @@ runs: shell: bash run: | python spec_zero_versions.py - - name: Upload artifact + - name: Upload files as an artifact uses: actions/upload-artifact@v4 with: - name: ${{ inputs.artifact-name }} - path: "spec_zero_data/*.tar.xz" + name: spec-zero-versions + path: | + schedule.json + schedule.md + chart.md \ No newline at end of file From 8ff233813e372b6e6e0d2d62555755dd05e96d8e Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Tue, 13 May 2025 17:39:24 -0700 Subject: [PATCH 6/7] Unsure if this will download and check the artifact --- .github/workflows/test_action.yaml | 11 +++++++++++ action.yaml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_action.yaml b/.github/workflows/test_action.yaml index 8499640..9472260 100644 --- a/.github/workflows/test_action.yaml +++ b/.github/workflows/test_action.yaml @@ -20,3 +20,14 @@ jobs: printf "\n\n" printf "Contents of schedule.md:\n" cat schedule.md + printf "\n\n" + - name: Remove generated files + run: | + printf "Removing generated files...\n" + rm -f chart.md schedule.json schedule.md + ls -R + - uses: actions/download-artifact@v4 + with: + name: spec-zero-versions + - name: Display structure of downloaded files + run: ls -R diff --git a/action.yaml b/action.yaml index 3374192..ab54c11 100644 --- a/action.yaml +++ b/action.yaml @@ -23,4 +23,4 @@ runs: path: | schedule.json schedule.md - chart.md \ No newline at end of file + chart.md From d002e1498d80661aea7e8a58b8b576d225a0e89b Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Tue, 13 May 2025 17:47:16 -0700 Subject: [PATCH 7/7] sort --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 4031c46..ccaba93 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ +packaging pandas requests -packaging