Skip to content

Commit

Permalink
update (ci): bump artifacts version
Browse files Browse the repository at this point in the history
  • Loading branch information
alleeclark committed Dec 18, 2024
1 parent 9fad00e commit aba3c02
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/actions/job-dump/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ runs:
shell: bash

- name: Upload pytest test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name }}
path: meta.json
25 changes: 16 additions & 9 deletions .github/workflows/ci_compatible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- run: echo "[]" > projects.json
- name: Upload placeholder
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: compatibility-${{ github.sha }}
path: projects.json
Expand Down Expand Up @@ -81,31 +81,36 @@ jobs:
matrix: ${{ fromJSON(needs.generator.outputs.matrix) }}
steps:
- name: Download 📥 summary
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: compatibility-${{ github.sha }}
- name: Download 📥 project
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
id: download-project
with:
name: project-${{ github.sha }}-${{ strategy.job-index }}
pattern: project-${{ github.sha }}-*

- run: ls -l
- name: append result
run: |
import json
import os
with open("projects.json") as fp:
data = json.load(fp)
with open("meta.json") as fp:
data.append(json.load(fp))
for root, dirs, files in os.walk("${{ steps.download-project.outputs.download-path }}"):
if "meta.json" in files:
with open(root+"/meta.json") as fp:
data.append(json.load(fp))
with open("projects.json", "w") as fp:
json.dump(data, fp)
shell: python

- name: Upload pytest test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: compatibility-${{ github.sha }}
path: projects.json
overwrite: true

watcher:
runs-on: ubuntu-latest
Expand All @@ -129,11 +134,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Download 📥 summary
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: compatibility-${{ github.sha }}
- run: cat projects.json

- run: ls -lR

- name: Prepare Slack payload
run: |
pip install -q -r requirements.txt
Expand Down Expand Up @@ -170,7 +177,7 @@ jobs:
git config user.email [email protected]
git merge origin/main
- name: Download 📥 summary
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: compatibility-${{ github.sha }}
- name: Update results
Expand Down

0 comments on commit aba3c02

Please sign in to comment.