Skip to content

WIP: release workflow #6

WIP: release workflow

WIP: release workflow #6

Workflow file for this run

name: Debug
on: [pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
env:
TEST: '[{"name": "@grammarly/focal", "version": "1.2.0"}, {"name": "@grammarly/focal-atom", "version": "0.8.9"}]'
steps:
# - uses: hmarr/debug-action@v2
- run: 'echo "json: $TEST"'
# - run: echo ${{ fromJson(env.TEST) }}
- uses: edwardgeorge/jq-action@v1
id: jq
with:
input: ${{ env.TEST }}
script: 'map({ key: .name, value: .version }) | from_entries | { focal: .["@grammarly/focal"], focalAtom: .["@grammarly/focal-atom"] }'
- run: echo ${{ steps.jq.outputs.result }}
- if: ${{ fromJson(steps.jq.outputs.result).focal }}
run: echo "Found @grammarly/focal ${{ fromJson(steps.jq.outputs.result).focal }}"
- if: ${{ fromJson(steps.jq.outputs.result).focalAtom }}
run: echo "Found @grammarly/focal ${{ fromJson(steps.jq.outputs.result).focalAtom }}"