Skip to content

Commit 4c86fad

Browse files
committed
Default to lookback 2 days
1 parent c1504d8 commit 4c86fad

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/actions/generate-matrix/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
default: "all"
99
lookback_days:
1010
description: "A JSON list of integers for how many days to look back. \"[0]\" means just today."
11-
default: "[0]"
11+
default: "[0,1,2]"
1212
outputs:
1313
matrix:
1414
description: "The build matrix to use in consequential jobs"
@@ -67,5 +67,8 @@ runs:
6767
fi
6868
6969
LOOKBACK_DAYS="${{ inputs.lookback_days }}"
70+
if [[ $(echo "$LOOKBACK_DAYS" | tr -d '[:space:]') == "" ]]; then
71+
LOOKBACK_DAYS="[0,1,2]"
72+
fi
7073
7174
echo "myoutput=$(jq -cn --argjson includes "$INCLUDES" --argjson names "$NAMES" --argjson lookback_days "$LOOKBACK_DAYS" '{name: $names, today_minus_n_days: $lookback_days, include:$includes}')" >> $GITHUB_OUTPUT

.github/workflows/check-snapshots.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
description: 'year month day'
1414
required: true
1515
type: string
16+
lookback_days:
17+
description: "A JSON list of integers for how many days to look back. \"[0]\" means just today."
18+
default: "[0]"
19+
type: string
1620
strategy:
1721
description: 'build strategy'
1822
required: true
@@ -38,7 +42,7 @@ jobs:
3842
id: set-matrix
3943
with:
4044
strategy: ${{ inputs.strategy }}
41-
lookback_days: "[0,1,2]"
45+
lookback_days: ${{ inputs.lookback_days }}
4246
check-snapshot:
4347
needs: generate-matrix
4448
strategy:

.github/workflows/fedora-copr-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
id: set-matrix
3030
with:
3131
strategy: ${{ inputs.strategy }}
32+
lookback_days: "[0]"
3233

3334
build-on-copr:
3435
needs: generate-matrix

0 commit comments

Comments
 (0)