Skip to content

Commit cbab3cb

Browse files
authored
Merge pull request #2 from swimmwatch/dev
Add check for .tmp existence
2 parents b7e9fec + 3f260b7 commit cbab3cb

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

action.yml

Lines changed: 7 additions & 0 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: "Check file existence"
91+
id: check_files
92+
uses: andstor/file-existence-action@v1
93+
with:
94+
files: ".tmp"
9095
- name: "Post: Change folder own group"
96+
if: steps.check_files.outputs.files_exists == 'true'
9197
run: sudo chown -R $USER:$USER .tmp
9298
shell: bash
9399
- name: "Post: 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)