Skip to content

Commit b365a5e

Browse files
authored
Create activity-report.yml
Signed-off-by: Jasper Mayone <[email protected]>
1 parent 61c41d6 commit b365a5e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Generate project activity report"
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
since:
6+
description: "Since date (x months ago, yyyy-mm-dd)"
7+
type: string
8+
required: true
9+
default: "3 months ago"
10+
until:
11+
description: "Until date (now, x months ago, yyyy-mm-dd)"
12+
type: string
13+
required: true
14+
default: "now"
15+
jobs:
16+
generate:
17+
timeout-minutes: 15
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- name: Download external script
24+
run: |
25+
curl -o ./git-activity-report.sh https://raw.githubusercontent.com/phishdirectory/scripts/main/git-activity-report.sh
26+
chmod +x ./git-activity-report.sh
27+
- name: Generate report
28+
env:
29+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
REPO: ${{ github.repository }}
31+
run: |
32+
SINCE="${{ inputs.since }}" UNTIL="${{ inputs.until }}" bash ./git-activity-report.sh >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)