Use tgstation-server-ci[bot] for re-run flaky tests

This commit is contained in:
Jordan Dominion
2024-08-25 09:07:01 -04:00
parent 9857cc7069
commit 1fa04f7ec8
+8
View File
@@ -13,9 +13,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Generate App Token
id: app-token-generation
uses: getsentry/action-github-app-token@d4b5da6c5e37703f8c3b3e43abb5705b46e159cc
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Rerun flaky tests
uses: actions/github-script@v7
with:
github-token: ${{ steps.app-token-generation.outputs.token }}
script: |
const { rerunFlakyTests } = await import('${{ github.workspace }}/.github/workflows/scripts/rerunFlakyTests.js')
await rerunFlakyTests({ github, context })