1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-09 13:47:13 +02:00
unleash.unleash/.github/workflows/ai-flag-cleanup.yml
Nuno Góis 2abbf976fe
chore: AI flag cleanup action trigger workflows (#10288)
https://linear.app/unleash/issue/2-3671/adapt-ai-flag-cleanup-action-to-use-our-unleash-bot-gh-app

Adapts our AI flag cleanup action to use our Unleash-Bot GH app. The
main side-effect we're interested in is that this now automatically
triggers the PR checks.

Example PR: https://github.com/Unleash/unleash/pull/10287
2025-07-03 08:48:28 +01:00

27 lines
802 B
YAML

name: AI flag cleanup
on:
issues:
types: [labeled]
workflow_dispatch:
inputs:
issue-number:
description: 'Flag completed issue number'
required: true
type: number
jobs:
flag-cleanup:
if: |
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'issues' && github.event.label.name == 'unleash-flag-completed')
uses: ./.github/workflows/ai-flag-cleanup-pr.yml
with:
issue-number: ${{ github.event.issue.number || fromJson(inputs['issue-number']) }}
model: gemini
api_key_env_name: GEMINI_API_KEY
secrets:
api_key_env_value: ${{ secrets.GEMINI_API_KEY }}
UNLEASH_BOT_APP_ID: ${{ secrets.UNLEASH_BOT_APP_ID }}
UNLEASH_BOT_PRIVATE_KEY: ${{ secrets.UNLEASH_BOT_PRIVATE_KEY }}