generated from christian-bromann/typescript-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 10
63 lines (61 loc) · 1.46 KB
/
expense.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Expense Contribution
on:
workflow_dispatch:
inputs:
prNumber:
description: "Number of the PR (without #)"
required: true
amount:
description: "The expense amount you like to grant for the contribution in $"
required: true
type: choice
options:
- 15
- 25
- 35
- 50
- 100
- 150
- 200
- 250
- 300
- 350
- 400
- 450
- 500
- 550
- 600
- 650
- 700
- 750
- 800
- 850
- 900
- 950
- 1000
jobs:
authorize:
runs-on: ubuntu-latest
steps:
- uses: octokit/request-action@v2.4.0
with:
route: GET /orgs/:organisation/teams/:team/memberships/${{ github.actor }}
team: technical-steering-committee
organisation: webdriverio
env:
GITHUB_TOKEN: ${{ secrets.WDIO_BOT_GITHUB_TOKEN }}
expense:
permissions:
contents: write
id-token: write
needs: [authorize]
runs-on: ubuntu-latest
steps:
- name: Run Expense Flow
uses: webdriverio/expense-action@v1
with:
prNumber: ${{ github.event.inputs.prNumber }}
amount: ${{ github.event.inputs.amount }}
env:
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
GH_TOKEN: ${{ secrets.WDIO_BOT_GITHUB_TOKEN }}