Skip to content

Commit 0e43ce0

Browse files
committed
ci: Add Expense Contribution workflow
1 parent 5f5f446 commit 0e43ce0

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

.github/workflows/expense.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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+
options:
14+
- 15
15+
- 25
16+
- 35
17+
- 50
18+
- 100
19+
- 150
20+
- 200
21+
- 250
22+
- 300
23+
- 350
24+
- 400
25+
- 450
26+
- 500
27+
- 550
28+
- 600
29+
- 650
30+
- 700
31+
- 750
32+
- 800
33+
- 850
34+
- 900
35+
- 950
36+
- 1000
37+
38+
jobs:
39+
authorize:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: octokit/request-action@v2.1.9
43+
with:
44+
route: GET /orgs/:organisation/teams/:team/memberships/${{ github.actor }}
45+
team: technical-steering-committee
46+
organisation: webdriverio
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.WDIO_BOT_GITHUB_TOKEN }}
49+
expense:
50+
permissions:
51+
contents: write
52+
id-token: write
53+
needs: [authorize]
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Run Expense Flow
57+
uses: webdriverio/expense-action@v1
58+
with:
59+
prNumber: ${{ github.event.inputs.prNumber }}
60+
amount: ${{ github.event.inputs.amount }}
61+
env:
62+
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
63+
GH_TOKEN: ${{ secrets.WDIO_BOT_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)