From 37dd52b12b18261e20262e78ce5fe455dbaeb1a4 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Wed, 12 Apr 2023 17:50:43 -0400 Subject: [PATCH] possible fix for actions 7 --- .github/workflows/shields.yml | 4 ++-- imgen.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/shields.yml b/.github/workflows/shields.yml index 1b934af..b31bb3a 100644 --- a/.github/workflows/shields.yml +++ b/.github/workflows/shields.yml @@ -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 diff --git a/imgen.py b/imgen.py index 34355a4..92d82db 100644 --- a/imgen.py +++ b/imgen.py @@ -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"