Skip to content

feat: two step release tag creation [ED-24451]#41

Draft
davseve wants to merge 8 commits into
mainfrom
ED-24451
Draft

feat: two step release tag creation [ED-24451]#41
davseve wants to merge 8 commits into
mainfrom
ED-24451

Conversation

@davseve

@davseve davseve commented Jun 24, 2026

Copy link
Copy Markdown
Member

No description provided.

@davseve davseve requested a review from asafdl June 24, 2026 12:25
shell: bash
env:
INPUT_VERSION: ${{ inputs.version }}
run: node "${{ github.action_path }}/dist/index.js"
- name: Switch to release branch
shell: bash
run: |
git checkout ${{ steps.handle-version-input.outputs.checkout_branch }}
shell: bash
run: |
git checkout ${{ steps.handle-version-input.outputs.checkout_branch }}
git checkout ${{ github.sha }} -- .github/
- name: Config git user
shell: bash
run: |
git config --global user.name "${{ inputs.maintain_username }}"
Comment thread actions/release-tag-creation/action.yml Fixed
id: create-release-tag
shell: bash
run: |
if [[ "${{ inputs.dry_run }}" == "true" ]]; then
Comment thread actions/release-tag-creation/action.yml Fixed
Comment thread actions/release-tag-creation/action.yml Fixed
echo "tag_pushed=false" >> "$GITHUB_OUTPUT"
else
git tag -a "v${{ inputs.version }}" -m "Release version ${{ inputs.version }}"
git push origin "v${{ inputs.version }}"
Comment thread actions/release-tag-creation/action.yml Dismissed
Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread actions/release-tag-creation/action.yml Outdated
run: |
VERSION="${{ inputs.version }}"
LAST_BETA_TAG=$(git ls-remote --tags | awk '{print $2}' | sed 's/^refs\/tags\/v//' | sed 's/^refs\/tags\///' | grep -E '^[0-9]+\.[0-9]+\.[0-9]-beta[1-9]$' | sort -V | tail -n 1)
sed -i -E "s/Stable tag: .*/Stable tag: ${VERSION}/" readme.txt

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Convert all seds to js

Comment thread actions/release-tag-creation/main.ts Fixed
shell: bash
run: |
git config --global user.name "${{ inputs.maintain_username }}"
git config --global user.email "${{ inputs.maintain_email }}"
env:
INPUT_VERSION: ${{ inputs.version }}
INPUT_CHANNEL: ${{ steps.handle-version-input.outputs.channel }}
run: node "${{ github.action_path }}/dist/update-version-files.js"
echo "Dry run — skipping tag push."
echo "tag_pushed=false" >> "$GITHUB_OUTPUT"
else
git tag -a "${{ inputs.version }}" -m "Release version ${{ inputs.version }}"
echo "Dry run — skipping tag push."
echo "tag_pushed=false" >> "$GITHUB_OUTPUT"
else
git tag -a "${{ inputs.version }}" -m "Release version ${{ inputs.version }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants