File tree Expand file tree Collapse file tree 1 file changed +64
-0
lines changed
.github/workflows/expense.yml Expand file tree Collapse file tree 1 file changed +64
-0
lines changed Original file line number Diff line number Diff line change 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/request-action@v2.1.9
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.GH_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 }}
You can’t perform that action at this time.
0 commit comments