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 cbf4075 commit eb871ea
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,28 @@ orbs:
slack: circleci/[email protected]

parameters:
version:
type: string
default: ""
arm_sha:
type: string
default: ""
x86_sha:
body:
type: string
default: ""
# arm_sha:
# type: string
# default: ""
# x86_sha:
# 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.
update-cli-formula:
parameters:
body:
type: string
default: ""
docker:
- image: cimg/node:lts
environment:
PIPELINE_PARAMS: << parameters >>
REQUEST_BODY: << body >>

steps:
- checkout
Expand Down Expand Up @@ -50,7 +54,6 @@ jobs:
- run:
name: Transform Formula Template
command: |
export REQUEST_BODY="<< pipeline.trigger_parameters.webhook.body >>"
export WEBHOOK_VERSION=$($REQUEST_BODY | jq .version)
echo "Apply requested context to template:"
Expand Down Expand Up @@ -81,6 +84,7 @@ workflows:
# when: << pipeline.parameters.version >>
jobs:
- update-cli-formula:
body: echo << pipeline.trigger_parameters.webhook.body >>
filters:
branches:
only:
Expand Down

0 comments on commit eb871ea

Please sign in to comment.