fix(ci): force full matrix on trigger commits
This commit is contained in:
parent
d1908821d0
commit
4592e77e9f
1 changed files with 9 additions and 0 deletions
|
|
@ -38,11 +38,20 @@ jobs:
|
||||||
CHANGED_FILES=$(git ls-files)
|
CHANGED_FILES=$(git ls-files)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
LAST_COMMIT_MSG=$(git log -1 --pretty=%B | tr '\n' ' ')
|
||||||
|
|
||||||
echo "Changed files:"
|
echo "Changed files:"
|
||||||
echo "$CHANGED_FILES"
|
echo "$CHANGED_FILES"
|
||||||
|
|
||||||
ALL_SERVICES='gateway,users,companies,jobs,leads,job-seekers,customers,payments,employees,photographers,makeup-artists,tutors,developers,video-editors,graphic-designers,social-media-managers,fitness-trainers,catering-services,ugc-content-creators,cron'
|
ALL_SERVICES='gateway,users,companies,jobs,leads,job-seekers,customers,payments,employees,photographers,makeup-artists,tutors,developers,video-editors,graphic-designers,social-media-managers,fitness-trainers,catering-services,ugc-content-creators,cron'
|
||||||
|
|
||||||
|
# Force full build for explicit trigger commits.
|
||||||
|
if echo "$LAST_COMMIT_MSG" | grep -Eiq 'trigger gitea pipeline|force build|rebuild all'; then
|
||||||
|
set_output "services_csv" "$ALL_SERVICES"
|
||||||
|
set_output "has_changes" "true"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Build everything for workflow/docker/shared backend changes.
|
# Build everything for workflow/docker/shared backend changes.
|
||||||
if echo "$CHANGED_FILES" | grep -Eq '^(\.gitea/workflows/|Dockerfile|Dockerfile\.|Cargo\.toml|Cargo\.lock|crates/|scripts/)'; then
|
if echo "$CHANGED_FILES" | grep -Eq '^(\.gitea/workflows/|Dockerfile|Dockerfile\.|Cargo\.toml|Cargo\.lock|crates/|scripts/)'; then
|
||||||
set_output "services_csv" "$ALL_SERVICES"
|
set_output "services_csv" "$ALL_SERVICES"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue