mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-23 13:46:45 +02:00
chore: AI flag cleanup should trigger PR workflows
This commit is contained in:
parent
1664c71b83
commit
8b2b10a95e
20
.github/workflows/ai-flag-cleanup-pr.yml
vendored
20
.github/workflows/ai-flag-cleanup-pr.yml
vendored
@ -40,10 +40,22 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
|
token: ${{ steps.app_token.outputs.token }}
|
||||||
|
fetch-depth: 0
|
||||||
|
persist-credentials: true
|
||||||
|
|
||||||
- name: Get issue
|
- name: Get issue
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
@ -121,13 +133,17 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ steps.create_branch.outputs.result }}
|
ref: ${{ steps.create_branch.outputs.result }}
|
||||||
|
token: ${{ steps.app_token.outputs.token }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
persist-credentials: true
|
||||||
|
|
||||||
- name: Configure Git
|
- name: Configure Git
|
||||||
|
env:
|
||||||
|
APP_ID: ${{ secrets.UNLEASH_BOT_APP_ID }}
|
||||||
run: |
|
run: |
|
||||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
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.email "${APP_ID}+unleash-ai-flag-cleanup[bot]@users.noreply.github.com"
|
||||||
git config --global user.name "github-actions[bot]"
|
git config --global user.name "unleash-ai-flag-cleanup[bot]"
|
||||||
|
|
||||||
- name: Install ripgrep
|
- name: Install ripgrep
|
||||||
run: sudo apt-get update && sudo apt-get install -y ripgrep
|
run: sudo apt-get update && sudo apt-get install -y ripgrep
|
||||||
|
Loading…
Reference in New Issue
Block a user