Skip to content

Commit 551ab4b

Browse files
ci: Add Expense Contribution workflow (webdriverio#7)
* ci: Add Expense Contribution workflow * Update .github/workflows/expense.yml --------- Co-authored-by: Christian Bromann <[email protected]>
1 parent 43dd1c6 commit 551ab4b

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/expense.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Expense Contribution
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
prNumber:
7+
description: "Number of the PR (without #)"
8+
required: true
9+
amount:
10+
description: "The expense amount you like to grant for the contribution in $"
11+
required: true
12+
type: choice
13+
default: "patch"
14+
options:
15+
- 15
16+
- 25
17+
- 35
18+
- 50
19+
- 100
20+
- 150
21+
- 200
22+
- 250
23+
- 300
24+
- 350
25+
- 400
26+
- 450
27+
- 500
28+
- 550
29+
- 600
30+
- 650
31+
- 700
32+
- 750
33+
- 800
34+
- 850
35+
- 900
36+
- 950
37+
- 1000
38+
39+
jobs:
40+
authorize:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: octokit/[email protected]
44+
with:
45+
route: GET /orgs/:organisation/teams/:team/memberships/${{ github.actor }}
46+
team: technical-steering-committee
47+
organisation: webdriverio
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.WDIO_BOT_GITHUB_TOKEN }}
50+
expense:
51+
permissions:
52+
contents: write
53+
id-token: write
54+
needs: [authorize]
55+
runs-on: ubuntu-latest
56+
steps:
57+
- name: Run Expense Flow
58+
uses: webdriverio/expense-action@v1
59+
with:
60+
prNumber: ${{ github.event.inputs.prNumber }}
61+
amount: ${{ github.event.inputs.amount }}
62+
env:
63+
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
64+
GH_TOKEN: ${{ secrets.WDIO_BOT_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)