Skip to content

Commit 95d9ae1

Browse files
committed
feat: add GitHub Actions workflows for git-sizer analysis and scheduled repo analysis
1 parent ce8d679 commit 95d9ae1

3 files changed

Lines changed: 52 additions & 1 deletion

File tree

.github/workflows/Snake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
permissions:
4242
contents: write
4343
runs-on: ubuntu-latest
44-
timeout-minutes: 5
44+
timeout-minutes: 60
4545

4646
steps:
4747
# generates a snake game from a github user (<github_user_name>) contributions graph, output a svg animation at <svg_out_path>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Analyze Repo with git-sizer
2+
run-name: Analyze Repo with git-sizer - ${{ github.event.inputs.repo }}
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
repo:
8+
description: 'Repository to analyze (e.g., https://github.com/owner/repo.git)'
9+
required: true
10+
11+
jobs:
12+
run-git-sizer:
13+
name: git-sizer - ${{ github.event.inputs.repo }}
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
19+
- name: Use local git-sizer action
20+
id: sizer
21+
uses: ChrisCarini/github-git-sizer-action@latest
22+
with:
23+
repo: ${{ github.event.inputs.repo }}
24+
flags: '--threshold=0'
25+
26+
- name: Print git-sizer output
27+
run: |
28+
printf "%s\n" "${{ steps.sizer.outputs.result }}"

.github/workflows/git-sizer.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Scheduled repo analysis with git-sizer
2+
3+
on:
4+
schedule:
5+
- cron: '44 2 * * 0' # Runs on Sundays at 2:44 AM UTC; https://crontab.guru/#44_2_*_*_0
6+
push:
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
run-git-sizer:
12+
name: git-sizer - ${{ github.repository }}
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Run git-sizer
16+
id: sizer
17+
uses: ChrisCarini/github-git-sizer-action@latest
18+
with:
19+
flags: '--threshold=0'
20+
21+
- name: Print git-sizer output
22+
run: |
23+
printf "%s\n" "${{ steps.sizer.outputs.result }}"

0 commit comments

Comments
 (0)