Update .drone.yml
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
756d5be721
commit
c5af7d12f3
1 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ steps:
|
||||||
- name: Find folders to update
|
- name: Find folders to update
|
||||||
script: |
|
script: |
|
||||||
folders=$(find . -type d -name 'docker-compose.yml' | sed 's/\/docker-compose\.yml//g' | uniq)
|
folders=$(find . -type d -name 'docker-compose.yml' | sed 's/\/docker-compose\.yml//g' | uniq)
|
||||||
echo "Found folders: $folders"
|
echo "Found folders: $folders"
|
||||||
|
|
||||||
# Loop through each folder and update its branch
|
# Loop through each folder and update its branch
|
||||||
- name: Update branches
|
- name: Update branches
|
||||||
|
@ -68,9 +68,9 @@ steps:
|
||||||
- git checkout {{ $folder }}
|
- git checkout {{ $folder }}
|
||||||
- git rebase origin/main
|
- git rebase origin/main
|
||||||
- git push origin {{ $folder }}
|
- git push origin {{ $folder }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
# This condition ensures the pipeline runs only if there are changes to any folder
|
# This condition ensures the pipeline runs only if there are changes to any folder
|
||||||
when:
|
when:
|
||||||
- expression: |
|
- expression: |
|
||||||
git diff --name-only origin/main HEAD | grep -E '\.(yml|yaml)'
|
git diff --name-only origin/main HEAD | grep -E '\.(yml|yaml)'
|
Reference in a new issue