Skip to content

Commit 57256d3

Browse files
authored
feat: add additional gource options (#18)
* feat: add gource options * test: trying out new workflow * chore: update actions/checkout * chore: update actions/upload-artifact * docs: added clearer descriptions * fix: gource key variable
1 parent d2fdf85 commit 57256d3

File tree

3 files changed

+37
-14
lines changed

3 files changed

+37
-14
lines changed

.github/workflows/gource-dev.yml

+21-11
Original file line numberDiff line numberDiff line change
@@ -81,29 +81,39 @@ jobs:
8181
# path: ./gource
8282
# retention-days: 1
8383

84-
avatar-issues:
84+
check-new-options:
8585
runs-on: ubuntu-latest
86-
86+
8787
steps:
8888
- name: 'Checkout'
89-
uses: actions/checkout@v2
89+
uses: actions/checkout@v4
9090
with:
9191
fetch-depth: 0
9292

9393
- name: 'Gource Action'
9494
uses: ./
9595
with:
96-
avatars_auto_fetch: true
97-
git_url: 'https://github.com/Ismoh/NoitaMP'
98-
gource_title: 'NoitaMP Gource master'
99-
gource_resolution: '1080p'
96+
git_url: https://github.com/chkpwd/dotfiles
97+
gource_title: IaC Repo
98+
logo_url: https://github.com/git.png
99+
gource_resolution: 1080p
100100
gource_fps: 60
101-
gource_font_size: 40
101+
avatars_auto_fetch: true
102+
gource_bloom_intensity: 0.5
103+
gource_bloom_multiplier: 0.5
102104
gource_auto_skip_seconds: 0.1
103-
gource_seconds_per_day: 0.1
105+
gource_camera_mode: track
106+
gource_filename_time: 2
107+
gource_seconds_per_day: 0.25
108+
gource_time_scale: 2.5
109+
gource_background_color: 0D1116
110+
gource_overlay_background_color: 0D1116
111+
gource_font_size: 80
112+
gource_hide_items: mouse,progress,dirnames
113+
104114

105115
- name: 'Upload gource video'
106-
uses: actions/upload-artifact@v2
116+
uses: actions/upload-artifact@v4
107117
with:
108118
name: Gource
109-
path: ./gource/gource.mp4
119+
path: ./gource/gource.mp4

action.yml

+12
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@ inputs:
3535
description: 'Used gource fps.'
3636
default: '60'
3737
required: false
38+
gource_bloom_multiplier:
39+
description: 'Adjust the amount of bloom.'
40+
default: '0.5'
41+
required: false
42+
gource_bloom_intensity:
43+
description: 'Adjust the intensity of bloom.'
44+
default: '0.5'
45+
required: false
46+
gource_key:
47+
description: 'Show file extension key.'
48+
default: ''
49+
required: false
3850
gource_auto_skip_seconds:
3951
description: 'Skip to next entry if nothing happens for a number of seconds.'
4052
default: '0.5'

gource.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,20 @@ gource --seconds-per-day ${INPUT_GOURCE_SECONDS_PER_DAY} \
8989
--dir-name-depth ${INPUT_GOURCE_DIR_DEPTH} \
9090
--filename-time ${INPUT_GOURCE_FILENAME_TIME} \
9191
--max-user-speed ${INPUT_GOURCE_MAX_USER_SPEED} \
92-
--bloom-multiplier 1.2 \
92+
--bloom-multiplier ${INPUT_GOURCE_BLOOM_MULTIPLIER} \
93+
--bloom-intensity ${INPUT_GOURCE_BLOOM_INTENSITY} \
9394
--${GOURCE_RES} ${OPTIONAL_PARAMS} \
9495
--stop-at-end \
9596
./development.log \
9697
-r ${INPUT_GOURCE_FPS} \
9798
-o - >./tmp/gource.pipe &
9899

99100
printf "\n> \t\tStarting Gource pipe for overlay components"
100-
gource --seconds-per-day ${INPUT_GOURCE_SECONDS_PER_DAY} \
101+
gource ${INPUT_GOURCE_KEY} \
102+
--seconds-per-day ${INPUT_GOURCE_SECONDS_PER_DAY} \
101103
--user-scale ${INPUT_GOURCE_USER_SCALE} \
102104
--time-scale ${INPUT_GOURCE_TIME_SCALE} \
103105
--auto-skip-seconds ${INPUT_GOURCE_AUTO_SKIP_SECONDS} \
104-
--key \
105106
--transparent \
106107
--background-colour 202021 \
107108
--font-colour ${INPUT_GOURCE_OVERLAY_FONT_COLOR} \

0 commit comments

Comments
 (0)