Skip to content

Commit 61760b1

Browse files
committed
fix(hack): fetch recipes by branch/runid instead of by last trigger time
Signed-off-by: Pierre Fenoll <[email protected]>
1 parent aff38ba commit 61760b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hack/recipes.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash -eu
22
set -o pipefail
33

4-
gh run download --pattern '*.Dockerfile'
4+
branch=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
5+
runID=$(gh run list --branch "$branch" --limit 1 --workflow CLIs --json databaseId --jq '.[].databaseId')
6+
gh run download "$runID" --pattern '*.Dockerfile'
57

68
for f in *.Dockerfile/*.Dockerfile; do
79
echo $f

0 commit comments

Comments
 (0)