Conversation
| - 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 }}" |
| id: create-release-tag | ||
| shell: bash | ||
| run: | | ||
| if [[ "${{ inputs.dry_run }}" == "true" ]]; then |
Co-authored-by: Cursor <cursoragent@cursor.com>
davseve
commented
Jun 24, 2026
| 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 |
| 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" |
| - 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)." |
Wiz Scan Summary
To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension. |
davseve
commented
Jul 6, 2026
davseve
commented
Jul 6, 2026
davseve
commented
Jul 6, 2026
davseve
commented
Jul 6, 2026
davseve
commented
Jul 6, 2026
davseve
commented
Jul 6, 2026
davseve
commented
Jul 6, 2026
|
|
||
| // ── elementor.php ──────────────────────────────────────────────────────── | ||
| const phpPath = 'elementor.php'; | ||
| const patchedPhp = patchPhpVersion(readFileSync(phpPath, 'utf8'), version); |
Member
Author
There was a problem hiding this comment.
rename function, this function updates the Elementor version in elementor.php file
patchElementorVersion or a better suggestion.
davseve
commented
Jul 6, 2026
|
|
||
| // ── readme.txt ─────────────────────────────────────────────────────────── | ||
| const readmePath = 'readme.txt'; | ||
| const lsRemote = fetchLsRemote(); |
Member
Author
There was a problem hiding this comment.
Suggested change
| const lsRemote = fetchLsRemote(); | |
| const fetchRepoTags = fetchRepoTags(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.