From 57256d303c5a9a5e72ed92ba13e3e83c5ec8b257 Mon Sep 17 00:00:00 2001 From: "Bryan J." <132493975+chkpwd@users.noreply.github.com> Date: Sun, 22 Dec 2024 19:56:22 -0500 Subject: [PATCH] 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 --- .github/workflows/gource-dev.yml | 32 +++++++++++++++++++++----------- action.yml | 12 ++++++++++++ gource.sh | 7 ++++--- 3 files changed, 37 insertions(+), 14 deletions(-) diff --git a/.github/workflows/gource-dev.yml b/.github/workflows/gource-dev.yml index fe110a0..467bfd5 100644 --- a/.github/workflows/gource-dev.yml +++ b/.github/workflows/gource-dev.yml @@ -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 \ No newline at end of file + path: ./gource/gource.mp4 diff --git a/action.yml b/action.yml index e91f0c2..df4d094 100644 --- a/action.yml +++ b/action.yml @@ -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' diff --git a/gource.sh b/gource.sh index 5f01703..1a2fcbf 100644 --- a/gource.sh +++ b/gource.sh @@ -89,7 +89,8 @@ 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 \ @@ -97,11 +98,11 @@ gource --seconds-per-day ${INPUT_GOURCE_SECONDS_PER_DAY} \ -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} \