Skip to content

Commit a0ba96f

Browse files
committed
Release notes generated from submodules
1 parent 74c4662 commit a0ba96f

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/build.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ jobs:
2828
- name: Set commit SHA as code version
2929
run: echo "CODE_VERSION=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
3030

31+
- name: Release notes
32+
run:
33+
./gen-rel-notes.sh > CHANGELOG
34+
35+
36+
3137
# - name: Build the stack
3238
# run: docker compose -f docker-compose.build.yml --env-file tdei_uw.env build --build-arg CODE_VERSION=${CODE_VERSION}
3339
# env:
@@ -75,10 +81,13 @@ jobs:
7581
run: |
7682
mkdir -p ~/.ssh
7783
eval `ssh-agent -s`
84+
7885
ssh-keyscan 52.156.141.168 >> ~/.ssh/known_hosts
86+
7987
echo "${{ secrets.GH_ACTIONS_SSH_KEY }}" > ~/.ssh/github_actions
8088
chmod 600 ~/.ssh/github_actions
8189
ssh-add ~/.ssh/github_actions
90+
8291
docker context create dev2 --docker "host=ssh://[email protected]"
8392
docker context use dev2
8493
docker compose -f docker-compose.deploy.yml --env-file tdei_uw.env up -d --pull always --force-recreate --remove-orphans

gen-rel-notes.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
for d in `find . -not -path '*/.*' -type d -depth 1`; do
4+
cd $d
5+
6+
echo $d | cut -d "/" -f 2
7+
git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline
8+
9+
cd ..
10+
done

0 commit comments

Comments
 (0)