Skip to content

Commit ba0cc05

Browse files
committed
add commits to message
Signed-off-by: Oliver Koenig <[email protected]>
1 parent 52b83e7 commit ba0cc05

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/sync_branch.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: sync main with dev
22
on:
33
schedule:
44
- 0 8 * * * # Runs at 8am UTC
5-
5+
pull_request:
6+
67
defaults:
78
run:
89
shell: bash -x -e -u -o pipefail {0}
@@ -28,6 +29,15 @@ jobs:
2829
DATE=$(date +"%Y-%m-%d")
2930
echo "date=$DATE" | tee -a "$GITHUB_OUTPUT"
3031
32+
- name: Get commit delta
33+
id: commit-delta
34+
run: |
35+
DELTA=$(git cherry -v ko3n1g/dev main | tr '+' '*')
36+
37+
echo "COMMIT_DELTA<<EOF" >> $GITHUB_ENV
38+
echo "$DELTA" >> $GITHUB_ENV
39+
echo "EOF" >> $GITHUB_ENV
40+
3141
- name: Attempt rebase
3242
run: |
3343
git config --global user.email "[email protected]"
@@ -84,6 +94,13 @@ jobs:
8494
8595
beep boop 🤖: This branch was last rebased onto `main` on ${{ env.DATE }}.
8696
97+
---
98+
99+
Updated commits:
100+
```
101+
${{ steps.commit-delta.outputs.main }}
102+
```
103+
87104
notify-failure:
88105
runs-on: ubuntu-latest
89106
if: failure()

0 commit comments

Comments
 (0)