Skip to content

Commit

Permalink
chore(action.yml): use runner.temp as folder where json gets stored.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Apr 3, 2024
1 parent 3bc8878 commit 54c584d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ runs:
shell: bash
working-directory: ${{ github.action_path }}
run: |
kernel-crawler crawl --distro=${{ inputs.distro }} --arch=${{ inputs.arch }} > kernels_${{ inputs.arch }}.json
kernel-crawler crawl --distro=${{ inputs.distro }} --arch=${{ inputs.arch }} > ${{ runner.temp }}/kernels_${{ inputs.arch }}.json
- name: Validate json
shell: bash
working-directory: ${{ github.action_path }}
working-directory: ${{ runner.temp }}
run: |
cat kernels_${{ inputs.arch }}.json | jq empty
- name: Set output
id: store-outputs
shell: bash
run: |
echo "json=${{ github.action_path }}/kernels_${{ inputs.arch }}.json" >> $GITHUB_OUTPUT
echo "json=${{ runner.temp }}/kernels_${{ inputs.arch }}.json" >> $GITHUB_OUTPUT

0 comments on commit 54c584d

Please sign in to comment.