Skip to content

Commit

Permalink
fix: use a temp json file to store input and write jq output into a n…
Browse files Browse the repository at this point in the history
…ew file
  • Loading branch information
Ludea authored Mar 2, 2025
1 parent 6df4ad4 commit 94ec471
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
- uses: actions/checkout@v4
- name: Create json store
run: |
echo '${{ inputs.content }}' > '${{ inputs.filename }}'
jq '.' ${{ inputs.filename }} > ${{ inputs.filename }}.tmp && mv ${{ inputs.filename }}.tmp ${{ inputs.filename }}
echo '${{ inputs.content }}' > '${{ inputs.filename }}.tmp'
jq '.' ${{ inputs.filename }}.tmp > ${{ inputs.filename }}
- name: check if default file is created
run: cat ${{ inputs.filename }}
- name: setup node
Expand Down

0 comments on commit 94ec471

Please sign in to comment.