From 94092e96beb7c604f6eac021d637d3adee10e753 Mon Sep 17 00:00:00 2001 From: Nikola Jokic Date: Tue, 17 Mar 2026 00:16:58 +0100 Subject: [PATCH] fix perm --- test/actions.github.com/custom-label-setup-v2.test.sh | 4 +--- test/actions.github.com/custom-label-setup.test.sh | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) mode change 100644 => 100755 test/actions.github.com/custom-label-setup-v2.test.sh mode change 100644 => 100755 test/actions.github.com/custom-label-setup.test.sh diff --git a/test/actions.github.com/custom-label-setup-v2.test.sh b/test/actions.github.com/custom-label-setup-v2.test.sh old mode 100644 new mode 100755 index 467986cb..6235a78b --- a/test/actions.github.com/custom-label-setup-v2.test.sh +++ b/test/actions.github.com/custom-label-setup-v2.test.sh @@ -15,7 +15,6 @@ SCALE_SET_NAME="custom-label-$(date +'%M%S')$(((RANDOM + 100) % 100 + 1))" SCALE_SET_NAMESPACE="arc-runners" SCALE_SET_LABEL="custom-$(date +'%s')${RANDOM}" WORKFLOW_FILE="arc-custom-label.yaml" -WORKFLOW_REF="${WORKFLOW_REF:-nikola-jokic-patch-1}" ARC_NAME="arc" ARC_NAMESPACE="arc-systems" @@ -71,7 +70,6 @@ function run_custom_label_workflow() { queue_time="$(date -u +%FT%TZ)" gh workflow run -R "${repo}" "${WORKFLOW_FILE}" \ - --ref "${WORKFLOW_REF}" \ -f scaleset-label="${SCALE_SET_LABEL}" || return 1 local count=0 @@ -82,7 +80,7 @@ function run_custom_label_workflow() { return 1 fi - run_id="$(gh run list -R "${repo}" --workflow "${WORKFLOW_FILE}" --branch "${WORKFLOW_REF}" --created ">${queue_time}" --json databaseId --jq '.[0].databaseId' | head -n1)" + run_id="$(gh run list -R "${repo}" --workflow "${WORKFLOW_FILE}" --created ">${queue_time}" --json databaseId --jq '.[0].databaseId' | head -n1)" if [[ -n "${run_id}" ]]; then break fi diff --git a/test/actions.github.com/custom-label-setup.test.sh b/test/actions.github.com/custom-label-setup.test.sh old mode 100644 new mode 100755 index 06e35c7c..08436535 --- a/test/actions.github.com/custom-label-setup.test.sh +++ b/test/actions.github.com/custom-label-setup.test.sh @@ -14,7 +14,6 @@ SCALE_SET_NAME="custom-label-$(date +'%M%S')$(((RANDOM + 100) % 100 + 1))" SCALE_SET_NAMESPACE="arc-runners" SCALE_SET_LABEL="custom-$(date +'%s')${RANDOM}" WORKFLOW_FILE="arc-custom-label.yaml" -WORKFLOW_REF="${WORKFLOW_REF:-nikola-jokic-patch-1}" ARC_NAME="arc" ARC_NAMESPACE="arc-systems" @@ -70,7 +69,6 @@ function run_custom_label_workflow() { queue_time="$(date -u +%FT%TZ)" gh workflow run -R "${repo}" "${WORKFLOW_FILE}" \ - --ref "${WORKFLOW_REF}" \ -f scaleset-label="${SCALE_SET_LABEL}" || return 1 local count=0 @@ -81,7 +79,7 @@ function run_custom_label_workflow() { return 1 fi - run_id="$(gh run list -R "${repo}" --workflow "${WORKFLOW_FILE}" --branch "${WORKFLOW_REF}" --created ">${queue_time}" --json databaseId --jq '.[0].databaseId' | head -n1)" + run_id="$(gh run list -R "${repo}" --workflow "${WORKFLOW_FILE}" --created ">${queue_time}" --json databaseId --jq '.[0].databaseId' | head -n1)" if [[ -n "${run_id}" ]]; then break fi @@ -114,4 +112,4 @@ function main() { print_results "${failed[@]}" } -main \ No newline at end of file +main