Skip to content

Commit

Permalink
Fix: use the input of the actual workflow, instead of bash $1/$2
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueBrain committed Oct 4, 2024
1 parent 654341f commit 23158c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create-summary-quarter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create Summary
name: Create Summary (Quarter)

on:
schedule:
Expand Down Expand Up @@ -50,8 +50,8 @@ jobs:
shell: bash
id: dates
run: |
year="$1"
quarter="$2"
year="${{ inputs.year }}"
quarter="${{ inputs.quarter }}"
# If no year/quarter is given, detect the quarter before today.
# This assumes this script is started on the first day of the next quarter.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-summary-week.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create Summary
name: Create Summary (Week)

on:
schedule:
Expand Down

0 comments on commit 23158c9

Please sign in to comment.