Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mickmaccallum committed Jul 25, 2024
1 parent 764dbce commit 52237ab
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 @@ -29,22 +29,26 @@ jobs:
name: Install Liquid
command: npm install liquidjs -g
- run:
name: Transform Formula Template
environment: |
WEBHOOK_VERSION: << pipeline.trigger_parameters.webhook.body >> | jq .version
WEBHOOK_ARM_SHA: << pipeline.trigger_parameters.webhook.body >> | jq .arm_sha
WEBHOOK_X86_SHA: << pipeline.trigger_parameters.webhook.body >> | jq .x86_sha
WEBHOOK_DESCRIPTION: << pipeline.trigger_parameters.webhook.body >> | jq .description
name: Test
command: |
echo "Apply requested context to template:\n"
echo "<< pipeline.trigger_parameters.webhook.body >>"
# - run:
# name: Transform Formula Template
# environment: |
# WEBHOOK_VERSION: << pipeline.trigger_parameters.webhook.body >> | jq .version
# WEBHOOK_ARM_SHA: << pipeline.trigger_parameters.webhook.body >> | jq .arm_sha
# WEBHOOK_X86_SHA: << pipeline.trigger_parameters.webhook.body >> | jq .x86_sha
# WEBHOOK_DESCRIPTION: << pipeline.trigger_parameters.webhook.body >> | jq .description
# command: |
# echo "Apply requested context to template:\n"
# echo "<< pipeline.trigger_parameters.webhook.body >>"

liquidjs --template @./Templates/parra-cli.rb.liquid --context '<< pipeline.trigger_parameters.webhook.body >>' --output ./Formula/parra-cli.rb
# liquidjs --template @./Templates/parra-cli.rb.liquid --context '<< pipeline.trigger_parameters.webhook.body >>' --output ./Formula/parra-cli.rb

# Orchestrate jobs using workflows
# See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows
workflows:
update-cli-formula-workflow:
when: << pipeline.trigger_parameters.webhook >>
# when: << pipeline.trigger_parameters.webhook >>
jobs:
- update-cli-formula

0 comments on commit 52237ab

Please sign in to comment.