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/.github/workflows/test_action.yaml b/.github/workflows/test_action.yaml new file mode 100644 index 0000000..9472260 --- /dev/null +++ b/.github/workflows/test_action.yaml @@ -0,0 +1,33 @@ +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 using local action + uses: ./ + - name: Check file contents + run: | + printf "Contents of chart.md:\n" + cat chart.md + printf "\n\n" + printf "Contents of schedule.json:\n" + cat schedule.json + 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 8d40d8e..ab54c11 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 diff --git a/requirements.txt b/requirements.txt index 69de461..ccaba93 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ +packaging pandas requests