@@ -55,11 +55,27 @@ jobs:
5555 labels : ${{ steps.meta.outputs.labels }}
5656 cache-from : type=gha
5757 cache-to : type=gha,mode=max
58+ - name : Generate changelog
59+ id : changelog
60+ run : |
61+ PREV_TAG=$(git tag --sort=-version:refname | head -2 | tail -1)
62+ if [ -z "$PREV_TAG" ]; then
63+ CHANGELOG=$(git log --pretty=format:"- %s" HEAD)
64+ else
65+ CHANGELOG=$(git log --pretty=format:"- %s" ${PREV_TAG}..HEAD)
66+ fi
67+ echo "changelog<<EOF" >> $GITHUB_OUTPUT
68+ echo "$CHANGELOG" >> $GITHUB_OUTPUT
69+ echo "EOF" >> $GITHUB_OUTPUT
70+
5871 - name : Create GitHub Release
5972 uses : softprops/action-gh-release@v1
6073 with :
6174 name : Release ${{ github.ref_name }}
6275 body : |
76+ ## What's Changed
77+ ${{ steps.changelog.outputs.changelog }}
78+
6379 ## Docker Images
6480
6581 Pull the image using:
6985 docker pull mrorbitman/subsyncarr:latest
7086 ```
7187
72- Example docker-compose.yaml:
73-
74- ```
75- name: subsyncarr
76-
77- services:
78- subsyncarr:
79- image: mrorbitman/subsyncarr:latest
80- container_name: subsyncarr
81- volumes:
82- # Any path configured with SCAN_PATHS env var must be mounted
83- # If no scan paths are specified, it defaults to scan `/scan_dir` like example below.
84- # - ${MEDIA_PATH:-/path/to/your/media}:/scan_dir
85- - /path/to/movies:/movies
86- - /path/to/tv:/tv
87- - /path/to/anime:/anime
88- restart: unless-stopped
89- environment:
90- - TZ=${TZ:-UTC}
91- - CRON_SCHEDULE=0 0 * * * # Runs every day at midnight by default
92- - SCAN_PATHS=/movies,/tv,/anime # Remember to mount these as volumes. Must begin with /. Default valus is `/scan_dir`
93- - EXCLUDE_PATHS=/movies/temp,/tv/downloads # Exclude certain sub-directories from the scan
94- - MAX_CONCURRENT_SYNC_TASKS=1
95- - INCLUDE_ENGINES=ffsubsync,autosubsync # If not set, all engines are used by default
96- ```
97-
9888 Docker Hub URL: https://hub.docker.com/r/mrorbitman/subsyncarr/tags
9989 draft : false
10090 prerelease : false
0 commit comments