From 9f1892bf86be2424b60efa0de096bcd73a6b797f Mon Sep 17 00:00:00 2001 From: zjgilliam Date: Mon, 16 Sep 2024 12:59:05 -0500 Subject: [PATCH] 1 --- .github/workflows/main.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 19a3b1d..0be2d69 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -130,16 +130,18 @@ jobs: find ./data -type f - name: List Generated PNGs + id: list_pngs run: | - echo "Listing generated PNGs:" - find ./data/*/*/*.png || echo "No PNGs found." - + png_files=$(find ./data/*/*/*.png) + echo "PNG_FILES=${png_files}" >> $GITHUB_ENV + echo "png_files=$png_files" >> $GITHUB_OUTPUT + - name: Upload Generated PNGs as Artifacts uses: actions/upload-artifact@v3 with: name: generated-pngs - path: /data/*/*/*.png # Adjust the path based on your directory structure - retention-days: 2 # Optional: Adjust retention period as needed + path: ${{ steps.list_pngs.outputs.png_files }} + retention-days: 2 add: name: Generate Jekyll Posts and Deploy