Update .forgejo/workflows/CD.yml
This commit is contained in:
parent
9a251cbfea
commit
b3c8f58906
1 changed files with 5 additions and 2 deletions
|
@ -2,8 +2,6 @@ name: Ansible Deploy to Hosts
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [closed]
|
types: [closed]
|
||||||
paths:
|
|
||||||
- 'docker/**'
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -29,6 +27,11 @@ jobs:
|
||||||
echo "Modified folders: $folders"
|
echo "Modified folders: $folders"
|
||||||
echo "::set-output name=folders::$folders"
|
echo "::set-output name=folders::$folders"
|
||||||
|
|
||||||
|
if [ -z "$folders" ]; then
|
||||||
|
echo "No changes in docker folder. Exiting."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Map Folder to Host
|
- name: Map Folder to Host
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|
Reference in a new issue