-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add Expense Contribution workflow (#408)
* ci: Add Expense Contribution workflow * Fix filepath * Prefer GH_TOKEN_WDIO_BOT over GH_TOKEN * Prefer WDIO_BOT_GITHUB_TOKEN over GH_TOKEN_WDIO_BOT * Fix filepath * Remove default value
- Loading branch information
1 parent
bf398da
commit 2667a20
Showing
2 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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/[email protected] | ||
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters