Skip to content

Commit

Permalink
add expense workflow test
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Feb 13, 2024
1 parent 13d2612 commit 1ad86fa
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,3 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{.travis.yml,**/*.json,.github/**/*.yml}]
indent_size = 2
75 changes: 75 additions & 0 deletions .github/workflows/check-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
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
default: 'patch'
options:
- 25
- 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.GH_TOKEN }}
expense:
permissions:
contents: write
id-token: write
needs: [authorize]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: 'main'
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Run Expense Flow
uses: webdriverio/expense-action
with:
org: webdriverio
repo: expense-action
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 }}

0 comments on commit 1ad86fa

Please sign in to comment.