Skip to content

Commit

Permalink
Add gource (#7193)
Browse files Browse the repository at this point in the history
Co-authored-by: Norbert Bartko <bartko.norbert@gmail.com>
Co-authored-by: Carl Christian Snethlage <50491877+calixtus@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 21, 2021
1 parent d31ef4d commit 7479f9c
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/gource.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Gource

on:
push:
branches:
- gource
schedule:
- cron: '15 3 1 1,4,7,10 *'

jobs:
action:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Determine dates
id: dates
run: |
echo ::set-output name=start_date::`date -d "$(date +%Y-%m-01) -3 months" +%Y-%m-%d`
echo ::set-output name=stop_date::`date -d "$(date +%Y-%m-01) -1 day" +%Y-%m-%d`
echo ::set-output name=quarter::`date -d "$(date +%Y-%m-01) -1 day" +%Y`-Q$(( ((`date -d "$(date +%Y-%m-01) -1 day" +%m`)-1)/3+1 ))
- name: 'Development history of last quarter'
uses: nbprojekt/gource-action@v1
with:
gource_title: 'JabRef | more information at contribute.jabref.org'
logo_url: 'https://www.jabref.org/img/JabRef-icon-256.png'
# 5s * 365 / 4 = 7.5min
gource_seconds_per_day: 5
gource_start_date: ${{ steps.dates.outputs.start_date }}
gource_stop_date: ${{ steps.dates.outputs.stop_date }}
gource_file_filter: csl$
- name: 'Store video'
run: |
mkdir gource-videos
mv ./gource/gource.mp4 ./gource-videos/jabref-${{ steps.dates.outputs.quarter }}.mp4
- name: 'Complete development history'
uses: nbprojekt/gource-action@v1
with:
gource_title: 'JabRef | more information at contribute.jabref.org'
logo_url: 'https://www.jabref.org/img/JabRef-icon-256.png'
# 0.01 leads to a 45 second video for the complete history until end of 2020
# 0.1 leads to a 8 minute video
gource_seconds_per_day: 0.1
gource_file_filter: csl$
- name: 'Store video'
run: |
mv gource/gource.mp4 gource-videos/jabref-complete.mp4
- name: 'Upload gource video'
uses: actions/upload-artifact@v2
with:
name: Gource
path: ./gource-videos/
retention-days: 80

0 comments on commit 7479f9c

Please sign in to comment.