diff --git a/workflows/member-contribution-report.yml b/workflows/member-contribution-report.yml new file mode 100644 index 0000000..3dfc509 --- /dev/null +++ b/workflows/member-contribution-report.yml @@ -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/github-org-member-contribution-action@v1.1.1 + 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 \ No newline at end of file