File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 6
6
permissions :
7
7
contents : write
8
8
9
+ env :
10
+ GIT_ORIGIN : https://github.com/awslabs/aws-lambda-powertools-python
11
+
9
12
jobs :
10
13
publish_changelog :
11
14
# Force Github action to run only a single job at a time (based on the group name)
@@ -18,12 +21,17 @@ jobs:
18
21
uses : actions/checkout@v3
19
22
with :
20
23
fetch-depth : 0
21
- - name : Git client setup and refresh tip
24
+ - name : Git client setup
22
25
run : |
23
26
git config user.name "Release bot"
24
27
git config user.email "aws-devax-open-source@amazon.com"
25
28
git config pull.rebase true
26
- git pull --rebase
29
+ - name : Git references setup and refresh
30
+ # `release` event trigger uses DETACHED Head instead of trunk like all other events
31
+ # so we need to explicitly configure it
32
+ run : |
33
+ git remote add origin ${GIT_ORIGIN}
34
+ git pull origin develop --rebase
27
35
- name : " Generate latest changelog"
28
36
run : make changelog
29
37
- name : Update Changelog in trunk
You can’t perform that action at this time.
0 commit comments