1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-18 13:48:58 +02:00

chore: AI flag cleanup should trigger PR workflows

This commit is contained in:
Nuno Góis 2025-07-02 12:47:05 +01:00
parent 1664c71b83
commit 8b2b10a95e
No known key found for this signature in database
GPG Key ID: 71ECC689F1091765

View File

@ -40,10 +40,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token
id: app_token
uses: peter-evans/create-github-app-token@v2
with:
app_id: ${{ secrets.UNLEASH_BOT_APP_ID }}
private_key: ${{ secrets.UNLEASH_BOT_PRIVATE_KEY }}
repository: ${{ github.repository }}
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
ref: ${{ github.ref }}
token: ${{ steps.app_token.outputs.token }}
fetch-depth: 0
persist-credentials: true
- name: Get issue
uses: actions/github-script@v7
@ -120,14 +132,18 @@ jobs:
- name: Check out new branch
uses: actions/checkout@v4
with:
ref: ${{ steps.create_branch.outputs.result }}
fetch-depth: 0
ref: ${{ steps.create_branch.outputs.result }}
token: ${{ steps.app_token.outputs.token }}
fetch-depth: 0
persist-credentials: true
- name: Configure Git
env:
APP_ID: ${{ secrets.UNLEASH_BOT_APP_ID }}
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git config --global user.email "${APP_ID}+unleash-ai-flag-cleanup[bot]@users.noreply.github.com"
git config --global user.name "unleash-ai-flag-cleanup[bot]"
- name: Install ripgrep
run: sudo apt-get update && sudo apt-get install -y ripgrep