Skip to content

Commit

Permalink
retest all latest and all drafts
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Jun 13, 2024
1 parent 76156be commit b5005e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/retest_all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,21 @@ jobs:
matrix: ${{steps.get_matrix.outputs.matrix}}

steps:
- run: wget ${{vars.S3_HOST}}/${{vars.S3_BUCKET}}/${{vars.S3_FOLDER}}/collection.json
- run: wget ${{vars.S3_HOST}}/${{vars.S3_BUCKET}}/${{vars.S3_FOLDER}}/collection_draft.json
- shell: python
id: get_matrix
run: |
import json, os
with open("collection_draft.json") as f:
with open("collection.json") as f:
collection = json.load(f)
with open("collection_draft.json") as f:
collection_draft = json.load(f)
versions = [{"id": entry.get("nickname", entry["id"]), "v": "latest"} for entry in collection["collection"]]
versions.extend([{"id": entry["id"], "v": "draft"} for entry in collection_draft["collection"])
matrix = {"include": versions}
with open(os.environ["GITHUB_OUTPUT"], "a") as f:
print(f"matrix={matrix}", file=f)
Expand Down

0 comments on commit b5005e5

Please sign in to comment.