aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-04-08 20:27:05 +0900
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-04-13 22:08:54 +0700
commit23949cf1f662dce285cda0762ba26a016129265f (patch)
tree9a98a3a4882169262173829ca628574091f2fa9a /.gitlab-ci.yml
parent1c4caf39b8aa6278647d01209645c137eecaafef (diff)
Public www update: Sat Apr 13 15:04:57 UTC 2024.15.0-20240413.1
This also merge changes in CI engine: https://github.com/SlackBuildsOrg/slackbuilds/pull/5832 Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2a2d3ea6db0c..124f1f960101 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -64,3 +64,27 @@ pr-checks:
GITLAB_TOKEN="$MR_AUTOMATION_TOKEN" glab mr --repo "SlackBuilds.org/slackbuilds" comment $(echo "$CI_OPEN_MERGE_REQUESTS" | cut -d '!' -f2) --unique=true --message "$(cat comment-output)"
fi
done
+
+ git diff-tree --name-only --diff-filter=d --no-commit-id -r $CI_MERGE_REQUEST_DIFF_BASE_SHA $CI_COMMIT_SHA | sed '/^\./d' | sed -n '/[^\/][^\/]*\/[^\/][^\/]*\//p' | xargs -I xx dirname xx | sort -u | while read -r project ; do
+ short_project="$(printf '%s\n' "$project" | cut -d/ -f2)"
+ response="$(wget -q -O - "https://slackbuilds.org/revdeps.php?q=$short_project" | sort)"
+
+ {
+ printf '#### reverse dependencies - %s\n\n' "$project"
+ if [[ "$response" == "" ]] ; then
+ printf 'None\n'
+ else
+ printf '```\n'
+ printf '%s' "$response"
+ printf '```\n'
+ fi
+ } > comment-output
+
+ if [ -z "$MR_AUTOMATION_TOKEN" ] ; then
+ printf 'No token available for MR comments\n'
+ cat comment-output
+ else
+ # $CI_PROJECT_PATH points to the fork
+ GITLAB_TOKEN="$MR_AUTOMATION_TOKEN" glab mr --repo "SlackBuilds.org/slackbuilds" comment $(echo "$CI_OPEN_MERGE_REQUESTS" | cut -d '!' -f2) --unique=true --message "$(cat comment-output)"
+ fi
+ done