-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(workflows): [
no-response
] use bot token
Signed-off-by: Lexus Drumgold <[email protected]>
- Loading branch information
1 parent
07d9a04
commit 55b8d05
Showing
1 changed file
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#issue_comment | ||
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#schedule | ||
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#issue_comment | ||
# - https://github.com/actions/create-github-app-token | ||
# - https://github.com/lee-dohm/no-response | ||
|
||
--- | ||
|
@@ -18,12 +19,16 @@ on: | |
schedule: | ||
# five minutes after the hour, every hour | ||
- cron: 5 * * * * | ||
permissions: | ||
issues: write | ||
jobs: | ||
no-response: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: bot-token | ||
name: Get bot token | ||
uses: actions/[email protected] | ||
with: | ||
app-id: ${{ secrets.BOT_APP_ID }} | ||
private-key: ${{ secrets.BOT_PRIVATE_KEY }} | ||
- id: close-issues | ||
name: Closes issues missing actionable info | ||
uses: lee-dohm/[email protected] | ||
|
@@ -35,4 +40,4 @@ jobs: | |
you have or find the answers needed so next steps, if any, can be determined. | ||
daysUntilClose: 14 | ||
responseRequiredLabel: status:awaiting-answers | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
token: ${{ steps.bot-token.outputs.token }} |