Fix quoting when echoing workflow JSON (#10596)

This commit is contained in:
Adam Weidman
2025-10-07 18:10:52 +02:00
committed by GitHub
parent d93e987f24
commit 6bb99806f0
12 changed files with 38 additions and 15 deletions

View File

@@ -32,7 +32,9 @@ runs:
steps:
- name: '📝 Print Inputs'
shell: 'bash'
run: 'echo "${{ toJSON(inputs) }}"'
env:
JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Creates a Pull Request'
if: "inputs.dry-run != 'true'"
env:

View File

@@ -29,7 +29,9 @@ runs:
steps:
- name: '📝 Print Inputs'
shell: 'bash'
run: 'echo "${{ toJSON(inputs) }}"'
env:
JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Prepare Coverage Comment'
id: 'prep_coverage_comment'
shell: 'bash'

View File

@@ -57,7 +57,9 @@ runs:
steps:
- name: '📝 Print Inputs'
shell: 'bash'
run: 'echo "${{ toJSON(inputs) }}"'
env:
JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: '👤 Configure Git User'
working-directory: '${{ inputs.working-directory }}'

View File

@@ -20,7 +20,9 @@ runs:
steps:
- name: '📝 Print Inputs'
shell: 'bash'
run: 'echo "${{ toJSON(inputs) }}"'
env:
JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Checkout'
uses: 'actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955' # ratchet:actions/checkout@v4
with:

View File

@@ -30,7 +30,9 @@ runs:
steps:
- name: '📝 Print Inputs'
shell: 'bash'
run: 'echo "${{ toJSON(inputs) }}"'
env:
JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Checkout'
uses: 'actions/checkout@v4'
with:

View File

@@ -15,7 +15,9 @@ runs:
steps:
- name: '📝 Print Inputs'
shell: 'bash'
run: 'echo "${{ toJSON(inputs) }}"'
env:
JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Run Tests'
env:
GEMINI_API_KEY: '${{ inputs.gemini_api_key }}'

View File

@@ -23,7 +23,9 @@ runs:
steps:
- name: '📝 Print Inputs'
shell: 'bash'
run: 'echo "${{ toJSON(inputs) }}"'
env:
JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Setup Node.js'
uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020'

View File

@@ -23,7 +23,9 @@ runs:
steps:
- name: '📝 Print Inputs'
shell: 'bash'
run: 'echo "${{ toJSON(inputs) }}"'
env:
JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Checkout'
uses: 'actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955' # ratchet:actions/checkout@v4