forked from ubiquity/ubiquibot
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.6 KB
/
Copy pathbot.yml
File metadata and controls
50 lines (46 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Calculate Bounty Based on Issue Labels
on:
issues:
types:
- labeled
- unlabeled
- assigned
issue_comment:
types:
- created
- edited
jobs:
calculate_bounty_job:
# ignore events invoked by bots
if: >-
github.event.pull_request.payload.sender.type != 'Bot'
runs-on: ubuntu-latest
name: Calculate Bounty with UbiquiBot
steps:
# To use this repository's private action,
# you must check out the repository
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18.14.1"
# This will authenticate the UbiquiBot with the UbiquiBot GitHub App
- name: Get GitHub App token
uses: tibdex/github-app-token@v1.7.0
id: get_installation_token
with:
app_id: ${{ secrets.UBIQUITY_BOUNTY_BOT_APP_ID }}
private_key: ${{ secrets.UBIQUITY_BOUNTY_BOT_PRIVATE_KEY }}
- name: Invoke the UbiquiBot
id: UbiquiBot
uses: ./bin
# [probot/adapter-github-actions] a token must be passed as `env.GITHUB_TOKEN` or `with.GITHUB_TOKEN` or `with.token`, see https://github.com/probot/adapter-github-actions#usage
with:
GITHUB_TOKEN: ${{ steps.get_installation_token.outputs.token }}
env:
SUPABASE_PROJECT_URL: ${{ secrets.SUPABASE_PROJECT_URL }}
SUPABASE_PROJECT_KEY: ${{ secrets.SUPABASE_PROJECT_KEY }}
UBIQUIBOT_PRIVATE_KEY: ${{ secrets.UBIQUIBOT_PRIVATE_KEY }}
FOLLOW_UP_TIME: '4 days'
DISQUALIFY_TIME: '7 days'