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
@@ -32,7 +32,9 @@ runs:
steps: steps:
- name: '📝 Print Inputs' - name: '📝 Print Inputs'
shell: 'bash' shell: 'bash'
run: 'echo "${{ toJSON(inputs) }}"' env:
JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Creates a Pull Request' - name: 'Creates a Pull Request'
if: "inputs.dry-run != 'true'" if: "inputs.dry-run != 'true'"
env: env:
@@ -29,7 +29,9 @@ runs:
steps: steps:
- name: '📝 Print Inputs' - name: '📝 Print Inputs'
shell: 'bash' shell: 'bash'
run: 'echo "${{ toJSON(inputs) }}"' env:
JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Prepare Coverage Comment' - name: 'Prepare Coverage Comment'
id: 'prep_coverage_comment' id: 'prep_coverage_comment'
shell: 'bash' shell: 'bash'
+3 -1
View File
@@ -57,7 +57,9 @@ runs:
steps: steps:
- name: '📝 Print Inputs' - name: '📝 Print Inputs'
shell: 'bash' shell: 'bash'
run: 'echo "${{ toJSON(inputs) }}"' env:
JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: '👤 Configure Git User' - name: '👤 Configure Git User'
working-directory: '${{ inputs.working-directory }}' working-directory: '${{ inputs.working-directory }}'
+3 -1
View File
@@ -20,7 +20,9 @@ runs:
steps: steps:
- name: '📝 Print Inputs' - name: '📝 Print Inputs'
shell: 'bash' shell: 'bash'
run: 'echo "${{ toJSON(inputs) }}"' env:
JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Checkout' - name: 'Checkout'
uses: 'actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955' # ratchet:actions/checkout@v4 uses: 'actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955' # ratchet:actions/checkout@v4
with: with:
+3 -1
View File
@@ -30,7 +30,9 @@ runs:
steps: steps:
- name: '📝 Print Inputs' - name: '📝 Print Inputs'
shell: 'bash' shell: 'bash'
run: 'echo "${{ toJSON(inputs) }}"' env:
JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Checkout' - name: 'Checkout'
uses: 'actions/checkout@v4' uses: 'actions/checkout@v4'
with: with:
+3 -1
View File
@@ -15,7 +15,9 @@ runs:
steps: steps:
- name: '📝 Print Inputs' - name: '📝 Print Inputs'
shell: 'bash' shell: 'bash'
run: 'echo "${{ toJSON(inputs) }}"' env:
JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Run Tests' - name: 'Run Tests'
env: env:
GEMINI_API_KEY: '${{ inputs.gemini_api_key }}' GEMINI_API_KEY: '${{ inputs.gemini_api_key }}'
+3 -1
View File
@@ -23,7 +23,9 @@ runs:
steps: steps:
- name: '📝 Print Inputs' - name: '📝 Print Inputs'
shell: 'bash' shell: 'bash'
run: 'echo "${{ toJSON(inputs) }}"' env:
JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Setup Node.js' - name: 'Setup Node.js'
uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020'
+3 -1
View File
@@ -23,7 +23,9 @@ runs:
steps: steps:
- name: '📝 Print Inputs' - name: '📝 Print Inputs'
shell: 'bash' shell: 'bash'
run: 'echo "${{ toJSON(inputs) }}"' env:
JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Checkout' - name: 'Checkout'
uses: 'actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955' # ratchet:actions/checkout@v4 uses: 'actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955' # ratchet:actions/checkout@v4
+4 -1
View File
@@ -65,7 +65,10 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: 'Debug Inputs' - name: 'Debug Inputs'
run: 'echo "${{ toJSON(inputs) }}"' shell: 'bash'
env:
JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Setup Node.js' - name: 'Setup Node.js'
uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020'
+4 -2
View File
@@ -53,8 +53,10 @@ jobs:
run: 'npm ci' run: 'npm ci'
- name: 'Print Inputs' - name: 'Print Inputs'
run: | shell: 'bash'
echo "${{ toJSON(github.event.inputs) }}" env:
JSON_INPUTS: '${{ toJSON(github.event.inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Run Tests' - name: 'Run Tests'
if: "${{ github.event_name == 'schedule' || github.event.inputs.force_skip_tests == 'false' }}" if: "${{ github.event_name == 'schedule' || github.event.inputs.force_skip_tests == 'false' }}"
@@ -63,8 +63,9 @@ jobs:
- name: 'Print Inputs' - name: 'Print Inputs'
shell: 'bash' shell: 'bash'
run: |- env:
echo "${{ toJSON(inputs) }}" JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Get Patch Version' - name: 'Get Patch Version'
id: 'patch_version' id: 'patch_version'
+3 -2
View File
@@ -59,8 +59,9 @@ jobs:
- name: 'Print Inputs' - name: 'Print Inputs'
shell: 'bash' shell: 'bash'
run: |- env:
echo "${{ toJSON(inputs) }}" JSON_INPUTS: '${{ toJSON(inputs) }}'
run: 'echo "$JSON_INPUTS"'
- name: 'Calculate Versions and SHAs' - name: 'Calculate Versions and SHAs'
id: 'versions' id: 'versions'