Skip to content

Commit

Permalink
hmm
Browse files Browse the repository at this point in the history
  • Loading branch information
mickmaccallum committed Jul 30, 2024
1 parent ee88cae commit dd1eb77
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ orbs:
jq: circleci/[email protected]
slack: circleci/[email protected]

parameters:
body:
type: string
default: ""

jobs:
# Invoked by incoming webhook by SDKs repo. It is expected that new SDK versions have been created and
# this script handles updating the Homebrew Formula and pushing it back to the tap repo.
Expand All @@ -31,10 +26,7 @@ jobs:
fingerprints:
- "SHA256:QZzH4mh9xO+ArIdKO+hiIYq54i5itfQN2PdZlvV+yok"
- "SHA256:YqMJCA/aAJSLDZXC4ZJ0bhSIQfHo1dNtSYOj/pXBdrI"
- run:
name: Dump Params
command: |
echo "$PIPELINE_PARAMS"

- jq/install

- run:
Expand All @@ -49,7 +41,7 @@ jobs:
echo "Apply requested context to template:"
echo $REQUEST_BODY
liquidjs --template @./Templates/parra-cli.rb.liquid --context $REQUEST_BODY --output ./Formula/parra-cli.rb
liquidjs --template @./Templates/parra-cli.rb.liquid --context "$REQUEST_BODY" --output ./Formula/parra-cli.rb
cat ./Formula/parra-cli.rb
Expand All @@ -71,8 +63,8 @@ jobs:

workflows:
update-cli-formula-workflow:
# when:
# condition: << pipeline.trigger_parameters >>
when:
condition: << pipeline.body >>
jobs:
- update-cli-formula:
body: << pipeline.trigger_parameters.webhook.body >>
Expand Down

0 comments on commit dd1eb77

Please sign in to comment.