Skip to content

Commit 3a7bf6b

Browse files
committed
Add check for .tmp existence
1 parent b7e9fec commit 3a7bf6b

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

action.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,16 @@ runs:
8787
echo "::set-output name=compare_state::compatible"
8888
fi
8989
shell: bash
90-
- name: "Post: Change folder own group"
90+
- name: Check file existence
91+
id: check_files
92+
uses: andstor/file-existence-action@v1
93+
with:
94+
files: ".tmp"
95+
- name: "Change folder own group"
96+
if: steps.check_files.outputs.files_exists == 'true'
9197
run: sudo chown -R $USER:$USER .tmp
9298
shell: bash
93-
- name: "Post: Remove .tmp directory"
99+
- name: "Remove .tmp directory"
100+
if: steps.check_files.outputs.files_exists == 'true'
94101
run: rm -fr .tmp
95102
shell: bash

0 commit comments

Comments
 (0)