Skip to content

Commit 7b29013

Browse files
committed
Revert "fix(ci): add explicit origin to fix release detached head"
This reverts commit b1b9549.
1 parent b1b9549 commit 7b29013

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/reusable_publish_changelog.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
permissions:
77
contents: write
88

9-
env:
10-
GIT_ORIGIN: https://github.com/awslabs/aws-lambda-powertools-python
11-
129
jobs:
1310
publish_changelog:
1411
# Force Github action to run only a single job at a time (based on the group name)
@@ -21,17 +18,12 @@ jobs:
2118
uses: actions/checkout@v3
2219
with:
2320
fetch-depth: 0
24-
- name: Git client setup
21+
- name: Git client setup and refresh tip
2522
run: |
2623
git config user.name "Release bot"
2724
git config user.email "aws-devax-open-source@amazon.com"
2825
git config pull.rebase true
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
26+
git pull --rebase
3527
- name: "Generate latest changelog"
3628
run: make changelog
3729
- name: Update Changelog in trunk

0 commit comments

Comments
 (0)