Skip to content

Commit

Permalink
More workflow updates
Browse files Browse the repository at this point in the history
  • Loading branch information
yut23 committed Dec 3, 2023
1 parent e5a7dc4 commit eb545e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gen_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -42,7 +44,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-depth: 1

- name: Install dependencies
run: |
Expand Down

0 comments on commit eb545e7

Please sign in to comment.