take an output
This commit is contained in:
9
.github/workflows/community-moderation.yml
vendored
9
.github/workflows/community-moderation.yml
vendored
@@ -7,11 +7,16 @@ jobs:
|
|||||||
name: warn_codegen
|
name: warn_codegen
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: fromJSON operates on outputs
|
||||||
|
id: setup
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo 'JSON={"FOO": "BAR", "FOO": "BAZ"}' >> "GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Testing duplicate JSON key behavior
|
- name: Testing duplicate JSON key behavior
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
export JSON='{"FOO": "BAR", "FOO": "BAZ"}'
|
echo ${{ fromJSON(steps.setup.outputs.JSON) }}
|
||||||
echo ${{ fromJSON($JSON) }}
|
|
||||||
|
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|||||||
Reference in New Issue
Block a user