File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 22
22
fi
23
23
folders=$(git diff --name-only HEAD~1 HEAD | grep '^docker/' | cut -d/ -f2 | sort | uniq)
24
24
echo "Modified folders: $folders"
25
- echo "::set-output name=folders::$folders"
25
+ echo "::set-output name=folders::$folders"
26
26
27
27
- name : Set condition for deployment
28
28
id : set-condition
@@ -35,14 +35,17 @@ jobs:
35
35
echo "::set-output name=continue::true"
36
36
fi
37
37
38
- if : steps.set-condition.outputs.continue == 'true'
38
+ conditional-deploy :
39
+ if : needs.deploy.outputs.continue == 'true'
40
+ runs-on : ubuntu-22.04
41
+ needs : deploy
39
42
steps :
40
43
- name : Checkout repository
41
44
uses : actions/checkout@v4
42
45
43
46
- name : Deploy to hosts
44
47
run : |
45
- IFS=' ' read -r -a folder_array <<< "${{ steps.detect-changes .outputs.folders }}"
48
+ IFS=' ' read -r -a folder_array <<< "${{ needs.deploy .outputs.folders }}"
46
49
for folder in "${folder_array[@]}"; do
47
50
case $folder in
48
51
arrs)
@@ -110,4 +113,4 @@ jobs:
110
113
echo "Absolute End: $(echo "$logs" | jq -r '.range.absolute_end')"
111
114
echo "Content:"
112
115
echo "$(echo "$logs" | jq -r '.content')"
113
- done
116
+ done
You can’t perform that action at this time.
0 commit comments