-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from capsule-corp-ternoa/github-workflow
Create member-contribution-report.yml
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
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,33 @@ | ||
on: | ||
schedule: | ||
# Runs on the first day of the month at 00:00 UTC | ||
# | ||
# βββββββββββββββ minute | ||
# β βββββββββββββ hour | ||
# β β βββββββββββ day (month) | ||
# β β β βββββββββ month | ||
# β β β β βββββββ day (week) | ||
- cron: '0 0 1 * *' | ||
workflow_dispatch: | ||
inputs: | ||
fromdate: | ||
description: 'Optional interval start date (format: yyyy-mm-dd)' | ||
required: false # Skipped if workflow dispatch input is not provided | ||
todate: | ||
description: 'Optional interval end date (format: yyyy-mm-dd)' | ||
required: false # Skipped if workflow dispatch input is not provided | ||
|
||
jobs: | ||
member-contribution-report: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get Member Contributions | ||
uses: nicklegan/[email protected] | ||
with: | ||
token: ${{ secrets.ORG_TOKEN }} | ||
fromdate: ${{ github.event.inputs.fromdate }} # Used for workflow dispatch input | ||
todate: ${{ github.event.inputs.todate }} # Used for workflow dispatch input |