From 914505d324c5963c48736a857bf5e708a0152a43 Mon Sep 17 00:00:00 2001 From: Srijan Saurav Date: Wed, 25 Oct 2023 19:02:02 +0530 Subject: [PATCH] fix: replace (/:t) with '' The former is invalid in bash --- .github/workflows/syncer.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/syncer.yaml b/.github/workflows/syncer.yaml index 96f24d31..3245c1ea 100644 --- a/.github/workflows/syncer.yaml +++ b/.github/workflows/syncer.yaml @@ -24,7 +24,7 @@ jobs: # These are all the subdirectories under `analyzers/` of the current repository # We only want the names of subdir stored as strings in the array # Expected result: ["infer", "kube-linter"] - analyzer_shortcodes=$(echo -n analyzers/*/(/:t) | jq -cRs 'split(" ")') + analyzer_shortcodes=$(echo -n analyzers/*/'' | jq -cRs 'split(" ")') # Send a sync signal curl -X POST $SYNC_ENDPOINT -H "Content-Type: application/json" -H "Authorization: Bearer ${DATASYNC_SECRET}" --data-raw '{"query":" mutation($input: TriggerCommunityAnalyzersSyncInput!){\n triggerCommunityAnalyzersSync(input: $input){\n ok\n }\n}","variables":{"input":{"repoRef":'\""$GITHUB_REF_NAME"\"', "analyzerTools":'"$analyzer_shortcodes"'}}}'