possible fix for actions 7

This commit is contained in:
Mikayla Fischler 2023-04-12 17:50:43 -04:00
parent 6b8b38b8cb
commit 37dd52b12b
2 changed files with 3 additions and 3 deletions

View File

@ -37,12 +37,12 @@ jobs:
uses: actions/setup-python@v3.1.3
- run: mkdir shields
- run: python imgen.py 0
- run: ls shields/
- run: ls ./shields/
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload shields JSON
path: shields/*
path: ./shields/*
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

View File

@ -111,7 +111,7 @@ f.close()
if sys.argv[1] == "shields":
# write all the JSON files for shields.io
for key, version in final_manifest["versions"].items():
f = open("shields/" + key + ".json", "w")
f = open("./shields/" + key + ".json", "w")
if version.find("alpha") >= 0:
color = "yellow"