Skip to content

Commit 728265b

Browse files
committed
Remove release artifact step from release_feature_freeze_ceremony.yaml
1 parent da60c6c commit 728265b

1 file changed

Lines changed: 9 additions & 35 deletions

File tree

.github/workflows/release_feature_freeze_ceremony.yaml

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ name: Release - Feature Freeze Ceremony
22

33
#
44
# Feature Freeze
5-
#
6-
# prereqs:
5+
#
6+
# prereqs:
77
# 0. needs approval from another person to run the action (environment)
88
# 1. ensure the correct branch is used to execute the action
99
# a. if the run was triggered from the `main` branch, the NEXT_VERSION must be a new minor (end with a .0)
1010
# b. if NEXT_VERSION is a patch release, then the branch the action was triggered on must be a release branch: `^[0-9]+\.[0-9]+\.x$`
1111
# 2. ensure the next version does not exist as tag yet
12-
#
12+
#
1313
# Tasks
1414
# 0. bump minor -dev version in version.config on main, if and only if it's a .0 release
1515
# 1. creates the release branch X.Y.x, if and if the branch does not exist yet
@@ -35,17 +35,17 @@ jobs:
3535
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3636
with:
3737
fetch-depth: 0
38-
38+
3939
- name: Check Release Conditions
4040
run: |
4141
NEXT_VERSION=$(head -1 version.config | cut -d ' ' -f 3 | cut -d '-' -f 1)
4242
RELEASE_BRANCH="${NEXT_VERSION/%.[0-9]/.x}"
43-
43+
4444
echo "Checking run conditions for release: $NEXT_VERSION" >> $GITHUB_STEP_SUMMARY
4545
echo "Current branch: ${{ github.ref_name }}" >> $GITHUB_STEP_SUMMARY
4646
echo "Expected release branch: $RELEASE_BRANCH" >> $GITHUB_STEP_SUMMARY
4747
echo "" >> $GITHUB_STEP_SUMMARY
48-
48+
4949
# Condition: version tag can not exist
5050
if git tag -l | grep -q "^$NEXT_VERSION$"; then
5151
echo "❌ \`$NEXT_VERSION\` tag already exists" >> $GITHUB_STEP_SUMMARY
@@ -110,7 +110,7 @@ jobs:
110110
# Only running for new minor releases
111111
#
112112
# -------------------------------------------------------
113-
113+
114114
# Bump minor in main for minor releases
115115
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
116116
with:
@@ -138,7 +138,7 @@ jobs:
138138
--head $BRANCH \
139139
--label "release")
140140
echo "* ✅ minor version increase on main: $PR_URL" >> $GITHUB_STEP_SUMMARY
141-
141+
142142
# Create `2.XX.x` release branch of `main`
143143
# Release branch is a dependency for the next steps
144144
# only execute this step on .0 releases
@@ -171,7 +171,7 @@ jobs:
171171
env:
172172
GITHUB_TOKEN: ${{ secrets.ORG_AUTOMATION_TOKEN }}
173173
run: |
174-
./scripts/changelog/generate.sh
174+
./scripts/changelog/generate.sh
175175
BODY=$(head -n 19 CHANGELOG.md | tail -n 20)
176176
177177
BRANCH="release/${{ env.NEXT_VERSION }}-changelog"
@@ -187,29 +187,3 @@ jobs:
187187
--head $BRANCH \
188188
--label "release,changelog")
189189
echo "* ✅ CHANGELOG: $PR_URL" >> $GITHUB_STEP_SUMMARY
190-
191-
# Rework version.config and up & down grade scripts
192-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
193-
with:
194-
ref: ${{ env.RELEASE_BRANCH }}
195-
- name: Generate release artefacts
196-
env:
197-
GITHUB_TOKEN: ${{ secrets.ORG_AUTOMATION_TOKEN }}
198-
run: |
199-
./scripts/release/build_release_artefacts.sh ${{ env.CURRENT_VERSION }} ${{ env.NEXT_VERSION }}
200-
201-
BRANCH="release/${{ env.CURRENT_VERSION }}-${{ env.NEXT_VERSION }}"
202-
git checkout -b $BRANCH
203-
git add version.config sql/updates/*.sql sql/CMakeLists.txt
204-
git commit -m "release artefacts from ${{ env.CURRENT_VERSION }} to ${{ env.NEXT_VERSION }}"
205-
git push origin $BRANCH
206-
207-
BODY="- CHANGELOG\n- set previous_version in version.config\n- adjust CMakeList.txt with up & down grade files"
208-
209-
PR_URL=$(gh pr create \
210-
--title "Release artefacts ${{ env.NEXT_VERSION }}" \
211-
--body "${BODY//\\n/$\n}" \
212-
--base ${{ env.RELEASE_BRANCH }} \
213-
--head $BRANCH \
214-
--label "release")
215-
echo "* ✅ Release artefacts: $PR_URL" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)