Skip to content

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

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

feat: two step release tag creation [ED-24451]#41
davseve wants to merge 14 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
Comment thread actions/release-tag-creation/action.yml Dismissed
- 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
Comment thread actions/release-tag-creation/action.yml Fixed
Comment thread actions/release-tag-creation/action.yml Fixed
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

let output: string;

try {
output = execSync(`git ls-remote origin "${tagRef}"`, { encoding: 'utf8' });
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"
Comment thread actions/release-tag-creation/action.yml Fixed
Comment thread actions/release-tag-creation/action.yml Fixed
- name: Write job summary
shell: bash
run: |
DRY_RUN="${{ inputs.dry_run }}"
shell: bash
run: |
DRY_RUN="${{ inputs.dry_run }}"
TAG_PUSHED="${{ steps.create-release-tag.outputs.tag_pushed }}"
run: |
DRY_RUN="${{ inputs.dry_run }}"
TAG_PUSHED="${{ steps.create-release-tag.outputs.tag_pushed }}"
CHANNEL="${{ steps.handle-version-input.outputs.channel }}"
DRY_RUN="${{ inputs.dry_run }}"
TAG_PUSHED="${{ steps.create-release-tag.outputs.tag_pushed }}"
CHANNEL="${{ steps.handle-version-input.outputs.channel }}"
BRANCH="${{ steps.handle-version-input.outputs.checkout_branch }}"
TAG_PUSHED="${{ steps.create-release-tag.outputs.tag_pushed }}"
CHANNEL="${{ steps.handle-version-input.outputs.channel }}"
BRANCH="${{ steps.handle-version-input.outputs.checkout_branch }}"
STABLE_TAG="${{ steps.capture-readme.outputs.readme_stable_tag }}"
CHANNEL="${{ steps.handle-version-input.outputs.channel }}"
BRANCH="${{ steps.handle-version-input.outputs.checkout_branch }}"
STABLE_TAG="${{ steps.capture-readme.outputs.readme_stable_tag }}"
BETA_TAG="${{ steps.capture-readme.outputs.readme_beta_tag }}"
echo "| Field | Value |"
echo "| --- | --- |"
echo "| **Mode** | ${MODE_BADGE} |"
echo "| **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 }}"
echo "Dry run — skipping tag push."
echo "tag_pushed=false" >> "$GITHUB_OUTPUT"
else
git tag -a "${{ inputs.version }}" -m "Release version ${{ inputs.version }}"
echo "tag_pushed=false" >> "$GITHUB_OUTPUT"
else
git tag -a "${{ inputs.version }}" -m "Release version ${{ inputs.version }}"
git push origin "${{ inputs.version }}"
else
git tag -a "${{ inputs.version }}" -m "Release version ${{ inputs.version }}"
git push origin "${{ inputs.version }}"
echo "Release tag ${{ inputs.version }} pushed successfully (branch unchanged)."
@davseve davseve requested a review from Ntnelbaba June 25, 2026 09:28
@wiz-9a149474ff

wiz-9a149474ff Bot commented Jul 5, 2026

Copy link
Copy Markdown

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities 8 Medium 4 Low
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings -
Software Management Finding Software Management Findings -
Total 8 Medium 4 Low

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

Comment thread actions/release-tag-creation/action.yml
Comment thread actions/release-tag-creation/main.ts
Comment thread actions/release-tag-creation/main.ts
Comment thread actions/release-tag-creation/main.ts
Comment thread actions/release-tag-creation/action.yml
Comment thread actions/release-tag-creation/action.yml

// ── elementor.php ────────────────────────────────────────────────────────
const phpPath = 'elementor.php';
const patchedPhp = patchPhpVersion(readFileSync(phpPath, 'utf8'), version);

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.

rename function, this function updates the Elementor version in elementor.php file
patchElementorVersion or a better suggestion.


// ── readme.txt ───────────────────────────────────────────────────────────
const readmePath = 'readme.txt';
const lsRemote = fetchLsRemote();

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.

Suggested change
const lsRemote = fetchLsRemote();
const fetchRepoTags = fetchRepoTags();

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