From 23158c9f1e47b1877e818766e10b41e183676b51 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Fri, 4 Oct 2024 16:39:44 +0200 Subject: [PATCH] Fix: use the input of the actual workflow, instead of bash $1/$2 --- .github/workflows/create-summary-quarter.yml | 6 +++--- .github/workflows/create-summary-week.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create-summary-quarter.yml b/.github/workflows/create-summary-quarter.yml index 4f6c75b..d52cdf8 100644 --- a/.github/workflows/create-summary-quarter.yml +++ b/.github/workflows/create-summary-quarter.yml @@ -1,4 +1,4 @@ -name: Create Summary +name: Create Summary (Quarter) on: schedule: @@ -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. diff --git a/.github/workflows/create-summary-week.yml b/.github/workflows/create-summary-week.yml index 088ab17..3663d69 100644 --- a/.github/workflows/create-summary-week.yml +++ b/.github/workflows/create-summary-week.yml @@ -1,4 +1,4 @@ -name: Create Summary +name: Create Summary (Week) on: schedule: