Skip to content

Commit 5061cac

Browse files
authored
Revert "docs: create an automated changlog file that shows up in release file…" (#1948)
This reverts commit d1f4f72.
1 parent 8698fe8 commit 5061cac

File tree

2 files changed

+1
-2645
lines changed

2 files changed

+1
-2645
lines changed

.github/workflows/ami-release-nix.yml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -112,30 +112,6 @@ jobs:
112112
run: |
113113
VERSION=$(cat common-nix.vars.pkr.hcl | sed -e 's/postgres-version = "\(.*\)"/\1/g')
114114
echo "version=$VERSION" >> $GITHUB_OUTPUT
115-
# Check if version matches release pattern
116-
if echo "$VERSION" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]{3}(-orioledb)?$'; then
117-
echo "is_release=true" >> $GITHUB_OUTPUT
118-
else
119-
echo "is_release=false" >> $GITHUB_OUTPUT
120-
fi
121-
122-
- name: Generate Changelog
123-
if: steps.process_release_version.outputs.is_release == 'true'
124-
run: |
125-
nix run nixpkgs#git-cliff -- --tag-pattern "^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]{3}(-orioledb)?$" --unreleased --tag "${{ steps.process_release_version.outputs.version }}" --prepend CHANGELOG.md
126-
# Remove the changelog commit itself from the changelog
127-
sed -i '/- Changelog after release/d' CHANGELOG.md
128-
129-
- name: Commit and push changelog
130-
if: steps.process_release_version.outputs.is_release == 'true'
131-
run: |
132-
git config user.name "github-actions[bot]"
133-
git config user.email "github-actions[bot]@users.noreply.github.com"
134-
git add CHANGELOG.md
135-
git commit -m "docs: update changelog for ${{ steps.process_release_version.outputs.version }}"
136-
git push
137-
echo "changelog_commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
138-
id: commit_changelog
139115
140116
- name: Create nix flake revision tarball
141117
run: |
@@ -193,8 +169,7 @@ jobs:
193169
with:
194170
name: ${{ steps.process_release_version.outputs.version }}
195171
tag_name: ${{ steps.process_release_version.outputs.version }}
196-
target_commitish: ${{ steps.process_release_version.outputs.is_release == 'true' && steps.commit_changelog.outputs.changelog_commit || github.sha }}
197-
files: CHANGELOG.md
172+
target_commitish: ${{github.sha}}
198173

199174
- name: Slack Notification on Failure
200175
if: ${{ failure() }}

0 commit comments

Comments
 (0)