Skip to content

Commit 14c4220

Browse files
committed
feat: use ref fo rbranch
1 parent 0ad7f7e commit 14c4220

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,14 +872,14 @@
872872
873873
# Trigger the workflow with the AMI name
874874
echo "Triggering testinfra-only workflow for AMI: $AMI_NAME on branch: $BRANCH"
875-
gh workflow run testinfra-only.yml --repo "$REPO" --ref "$BRANCH" -f ami_name="$AMI_NAME"
875+
gh workflow run testinfra-only.yml --ref "$BRANCH" -f ami_name="$AMI_NAME"
876876
877877
# Wait for workflow to start and get the run ID
878878
echo "Waiting for workflow to start..."
879879
sleep 5
880880
881881
# Get the latest run ID for this workflow
882-
RUN_ID=$(gh run list --workflow=testinfra-only.yml --repo "$REPO" --branch "$BRANCH" --limit 1 --json databaseId --jq '.[0].databaseId')
882+
RUN_ID=$(gh run list --workflow=testinfra-only.yml --branch "$BRANCH" --limit 1 --json databaseId --jq '.[0].databaseId')
883883
884884
if [ -z "$RUN_ID" ]; then
885885
echo "Error: Could not find workflow run ID"

0 commit comments

Comments
 (0)