File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 3535 run : |
3636 mkdir -p "$(dirname "${{ inputs.key }}")"
3737 echo '${{ inputs.value }}' > "${{ inputs.key }}"
38- - name : Save cached value
38+ - if : ${{ inputs.value }}
39+ name : Save cached value
3940 uses : github/continuous-accessibility-scanner/.github/actions/gh-cache/save@smockle/cache-findings
4041 with :
4142 path : ${{ inputs.key }}
4445 shell : bash
4546 run : |
4647 echo "value<<EOF" >> $GITHUB_OUTPUT
47- cat "${{ inputs.key }}" >> $GITHUB_OUTPUT
48+ if [ -f "${{ inputs.key }}" ]; then
49+ cat "${{ inputs.key }}" >> $GITHUB_OUTPUT
50+ fi
4851 echo "EOF" >> $GITHUB_OUTPUT
4952
5053branding :
Original file line number Diff line number Diff line change @@ -33,15 +33,15 @@ runs:
3333 - name : Copy file to repo
3434 shell : bash
3535 run : |
36- if [ -e "${{ inputs.path }}" ]; then
36+ if [ -f "${{ inputs.path }}" ]; then
3737 cp -Rf "${{ inputs.path }}" ".gh-cache-${{ github.run_id }}/${{ inputs.path }}"
3838 fi
3939
4040 - name : Commit and push
4141 shell : bash
4242 working-directory : .gh-cache-${{ github.run_id }}
4343 run : |
44- if [ -e "${{ inputs.path }}" ]; then
44+ if [ -f "${{ inputs.path }}" ]; then
4545 git add "${{ inputs.path }}"
4646 git config user.name "github-actions[bot]"
4747 git config user.email "github-actions[bot]@users.noreply.github.com"
You can’t perform that action at this time.
0 commit comments