Merge branch 'ci-issue-bot-use-var' into 'main'

ci: Use issue bot native support for $ISSUE_BOT_API_TOKEN_FILE

See merge request GNOME/glib!4910
This commit is contained in:
Michael Catanzaro
2025-11-20 09:16:46 -06:00

View File

@@ -1059,12 +1059,7 @@ issue-bot:
stage: report
image:
name: registry.gitlab.com/gitlab-org/distribution/issue-bot:latest
# We need to launch it manually for now, until the token file is supported:
# https://gitlab.com/gitlab-org/distribution/issue-bot/-/merge_requests/27
entrypoint: ["/bin/sh", "-e", "-l", "-c"]
script:
- ISSUE_BOT_API_TOKEN=$(cat "${ISSUE_BOT_API_TOKEN_FILE}")
- export ISSUE_BOT_API_TOKEN
- /issue-bot
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "schedule"