Skip to content

Commit 3a90766

Browse files
committed
Satisfy pre-commit
1 parent 4959134 commit 3a90766

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/generate_prs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,12 @@ jobs:
9797
GH_ACCESS_TOKEN: ${{ secrets.gh_access_token }}
9898
REPOSITORY: ${{ matrix.repository }}
9999
# tags local excludes all actions that actually generate PRs
100-
DRY_RUN_FLAGS: ${{ inputs.dry-run && '--tags local' || '' }}
100+
DRY_RUN_FLAGS: ${{ inputs.dry-run && '--tags=local' || '' }}
101+
# shellsheck disable=SC2086
101102
run: |
102-
# Funnel via JSON to ensure that values are escaped properly
103103
echo '{}' | jq '{commit_hash: $ENV.GITHUB_SHA, author: $ENV.AUTHOR, reason: $ENV.REASON, custom_pr_title: $ENV.CUSTOM_PR_TITLE, base_dir: $pwd, gh_access_token: $ENV.GH_ACCESS_TOKEN, shard_repositories: [$ENV.REPOSITORY]} | with_entries(select(.value != null and .value != ""))' --arg pwd "$(pwd)" > vars.json
104+
# $DRY_RUN_FLAGS is intentionally not quoted, since we need to avoid
105+
# passing an argument if we're not in dry mode.
106+
# This is safe, since it always has one of two hard-coded values.
107+
# shellcheck disable=SC2086
104108
ansible-playbook playbook/playbook.yaml --extra-vars "@vars.json" $DRY_RUN_FLAGS

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
rm -fr work || true
44
mkdir -p work
5-
ansible-playbook playbook/playbook.yaml --tags "local" --extra-vars "gh_access_token=unneeded base_dir=$(pwd) commit_hash=12345 reason='original message'" "$@"
5+
ansible-playbook playbook/playbook.yaml --tags="local" --extra-vars "gh_access_token=unneeded base_dir=$(pwd) commit_hash=12345 reason='original message'" "$@"

0 commit comments

Comments
 (0)