Skip to content

WIP: release workflow #5

WIP: release workflow

WIP: release workflow #5

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'
- run: echo ${{ steps.jq.outputs.result }}
- if: ${{ fromJson(steps.jq.outputs.result)['@grammarly/focal'] }}
run: echo "Found @grammarly/focal ${{ fromJson(steps.jq.outputs.result)['@grammarly/focal'] }}"
- if: ${{ fromJson(steps.jq.outputs.result)['@grammarly/focal-atom'] }}
run: echo "Found @grammarly/focal ${{ fromJson(steps.jq.outputs.result)['@grammarly/focal-atom'] }}"