-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbf4075
commit eb871ea
Showing
1 changed file
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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:" | ||
|
@@ -81,6 +84,7 @@ workflows: | |
# when: << pipeline.parameters.version >> | ||
jobs: | ||
- update-cli-formula: | ||
body: echo << pipeline.trigger_parameters.webhook.body >> | ||
filters: | ||
branches: | ||
only: | ||
|