Generate Gource Movie #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Gource Movie | |
# generates commit history video | |
on: workflow_dispatch | |
jobs: | |
generate_movie: | |
runs-on: [self-hosted, Ubuntu] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Generate movie | |
run: | | |
xvfb-run gource --output-custom-log repo-activity.log | |
python3 -c "txt=open('repo-activity.log').read();txt=txt.replace('Bruno Manuel Santos Saraiva', 'Bruno Saraiva').replace('inesmcunha', 'Inês Cunha').replace('antmsbrito', 'António Brito');open('repo-activity.log', 'w').write(txt)" | |
xvfb-run gource --highlight-dirs --highlight-users repo-activity.log -1280x720 --max-user-speed 100 --seconds-per-day 0.1 --auto-skip-seconds 1 -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -pix_fmt yuv420p gource.mp4 | |
- name: Archive generated movie | |
uses: actions/upload-artifact@v4 | |
with: | |
name: gource-movie | |
path: gource.mp4 | |
retention-days: 3 |