Skip to content

Commit

Permalink
fix: replace (/:t) with ''
Browse files Browse the repository at this point in the history
The former is invalid in bash
  • Loading branch information
srijan-deepsource committed Oct 25, 2023
1 parent 1bdc443 commit 914505d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/syncer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"'}}}'
Expand Down

0 comments on commit 914505d

Please sign in to comment.