Skip to content

Commit

Permalink
feat: add additional gource options (#18)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
chkpwd authored Dec 23, 2024
1 parent d2fdf85 commit 57256d3
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 14 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/gource-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,29 +81,39 @@ jobs:
# path: ./gource
# retention-days: 1

avatar-issues:
check-new-options:
runs-on: ubuntu-latest

steps:
- name: 'Checkout'
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 'Gource Action'
uses: ./
with:
avatars_auto_fetch: true
git_url: 'https://github.com/Ismoh/NoitaMP'
gource_title: 'NoitaMP Gource master'
gource_resolution: '1080p'
git_url: https://github.com/chkpwd/dotfiles
gource_title: IaC Repo
logo_url: https://github.com/git.png
gource_resolution: 1080p
gource_fps: 60
gource_font_size: 40
avatars_auto_fetch: true
gource_bloom_intensity: 0.5
gource_bloom_multiplier: 0.5
gource_auto_skip_seconds: 0.1
gource_seconds_per_day: 0.1
gource_camera_mode: track
gource_filename_time: 2
gource_seconds_per_day: 0.25
gource_time_scale: 2.5
gource_background_color: 0D1116
gource_overlay_background_color: 0D1116
gource_font_size: 80
gource_hide_items: mouse,progress,dirnames


- name: 'Upload gource video'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Gource
path: ./gource/gource.mp4
path: ./gource/gource.mp4
12 changes: 12 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ inputs:
description: 'Used gource fps.'
default: '60'
required: false
gource_bloom_multiplier:
description: 'Adjust the amount of bloom.'
default: '0.5'
required: false
gource_bloom_intensity:
description: 'Adjust the intensity of bloom.'
default: '0.5'
required: false
gource_key:
description: 'Show file extension key.'
default: ''
required: false
gource_auto_skip_seconds:
description: 'Skip to next entry if nothing happens for a number of seconds.'
default: '0.5'
Expand Down
7 changes: 4 additions & 3 deletions gource.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,20 @@ gource --seconds-per-day ${INPUT_GOURCE_SECONDS_PER_DAY} \
--dir-name-depth ${INPUT_GOURCE_DIR_DEPTH} \
--filename-time ${INPUT_GOURCE_FILENAME_TIME} \
--max-user-speed ${INPUT_GOURCE_MAX_USER_SPEED} \
--bloom-multiplier 1.2 \
--bloom-multiplier ${INPUT_GOURCE_BLOOM_MULTIPLIER} \
--bloom-intensity ${INPUT_GOURCE_BLOOM_INTENSITY} \
--${GOURCE_RES} ${OPTIONAL_PARAMS} \
--stop-at-end \
./development.log \
-r ${INPUT_GOURCE_FPS} \
-o - >./tmp/gource.pipe &

printf "\n> \t\tStarting Gource pipe for overlay components"
gource --seconds-per-day ${INPUT_GOURCE_SECONDS_PER_DAY} \
gource ${INPUT_GOURCE_KEY} \
--seconds-per-day ${INPUT_GOURCE_SECONDS_PER_DAY} \
--user-scale ${INPUT_GOURCE_USER_SCALE} \
--time-scale ${INPUT_GOURCE_TIME_SCALE} \
--auto-skip-seconds ${INPUT_GOURCE_AUTO_SKIP_SECONDS} \
--key \
--transparent \
--background-colour 202021 \
--font-colour ${INPUT_GOURCE_OVERLAY_FONT_COLOR} \
Expand Down

0 comments on commit 57256d3

Please sign in to comment.