From eb545e757f3639c129b3f7650ed23fcc9c882fdc Mon Sep 17 00:00:00 2001 From: yut23 Date: Sun, 3 Dec 2023 18:28:16 -0500 Subject: [PATCH] More workflow updates --- .github/workflows/gen_matrix.py | 2 +- .github/workflows/test-build.yml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gen_matrix.py b/.github/workflows/gen_matrix.py index 1244f65..e6c8ce2 100644 --- a/.github/workflows/gen_matrix.py +++ b/.github/workflows/gen_matrix.py @@ -6,7 +6,7 @@ changed_files = json.loads(sys.argv[1]) for file in changed_files: path = Path(file) - print(path) + print(path, file=sys.stderr) includes.append({"dir": "2023", "target": "day01"}) includes.append({"dir": "2023", "target": "day02"}) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index aabab37..5a2fe97 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -28,7 +28,9 @@ jobs: # reference: https://stackoverflow.com/a/65094398 - name: Setup matrix combinations id: setup-matrix-combinations - run: python ${GITHUB_WORKSPACE}/.github/workflows/gen_matrix.py "${{ steps.changed-files.outputs.all_changed_files }}" >> $GITHUB_OUTPUT + run: | + python ${GITHUB_WORKSPACE}/.github/workflows/gen_matrix.py "${{ steps.changed-files.outputs.all_changed_files }}" >> $GITHUB_OUTPUT + cat $GITHUB_OUTPUT outputs: matrix-combinations: ${{ steps.setup-matrix-combinations.outputs.matrix-combinations }} @@ -42,7 +44,7 @@ jobs: steps: - uses: actions/checkout@v3 with: - fetch-depth: 0 + fetch-depth: 1 - name: Install dependencies run: |