From a496fc80f869ec32c433784e17031174b2a660e8 Mon Sep 17 00:00:00 2001 From: Viet Nguyen Duc Date: Mon, 3 Feb 2025 12:44:44 +0700 Subject: [PATCH] [ci] Update workflow deploy node/standalone browser versions Signed-off-by: Viet Nguyen Duc --- .github/workflows/release-chrome-versions.yml | 11 +++++++---- .github/workflows/release-edge-versions.yml | 11 +++++++---- .github/workflows/release-firefox-versions.yml | 11 +++++++---- update_tag_in_docs_and_files.sh | 2 +- 4 files changed, 22 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release-chrome-versions.yml b/.github/workflows/release-chrome-versions.yml index f88b11120..2db1e14d6 100644 --- a/.github/workflows/release-chrome-versions.yml +++ b/.github/workflows/release-chrome-versions.yml @@ -177,12 +177,15 @@ jobs: uses: peter-evans/create-pull-request@main with: token: ${{ secrets.SELENIUM_CI_TOKEN }} - commit-message: "[ci] Upload CHANGELOG for Node/Standalone ${{ env.BROWSER_NAME }} version with Grid ${{ env.GRID_VERSION }}" - title: "[ci] Upload CHANGELOG for Node/Standalone ${{ env.BROWSER_NAME }} version with Grid ${{ env.GRID_VERSION }}" - body: "This PR contains the CHANGELOG for Node/Standalone Chrome with specific browser versions: ${{ github.event.inputs.browser-versions }}" + commit-message: | + [ci] Upload CHANGELOG for Node/Standalone ${{ env.BROWSER_NAME }} version with Grid ${{ env.GRID_VERSION }} + + Browser versions: ${{ github.event.inputs.browser-versions }} + title: "[ci] CHANGELOG for Node/Standalone ${{ env.BROWSER_NAME }} browser versions with Grid ${{ env.GRID_VERSION }}" + body: "This PR contains the CHANGELOG for Node/Standalone ${{ env.BROWSER_NAME }} with specific browser versions: ${{ github.event.inputs.browser-versions }}" committer: 'Selenium CI Bot ' author: 'Selenium CI Bot ' - branch: browser-node-changelog + branch: browser-node-${{ env.BROWSER_NAME }}-changelog - name: Check outputs if: ${{ steps.cpr.outputs.pull-request-number }} run: | diff --git a/.github/workflows/release-edge-versions.yml b/.github/workflows/release-edge-versions.yml index 7fa47900d..54da27424 100644 --- a/.github/workflows/release-edge-versions.yml +++ b/.github/workflows/release-edge-versions.yml @@ -177,12 +177,15 @@ jobs: uses: peter-evans/create-pull-request@main with: token: ${{ secrets.SELENIUM_CI_TOKEN }} - commit-message: "[ci] Upload CHANGELOG for Node/Standalone ${{ env.BROWSER_NAME }} version with Grid ${{ env.GRID_VERSION }}" - title: "[ci] Upload CHANGELOG for Node/Standalone ${{ env.BROWSER_NAME }} version with Grid ${{ env.GRID_VERSION }}" - body: "This PR contains the CHANGELOG for Node/Standalone Edge with specific browser versions: ${{ github.event.inputs.browser-versions }}" + commit-message: | + [ci] Upload CHANGELOG for Node/Standalone ${{ env.BROWSER_NAME }} version with Grid ${{ env.GRID_VERSION }} + + Browser versions: ${{ github.event.inputs.browser-versions }} + title: "[ci] CHANGELOG for Node/Standalone ${{ env.BROWSER_NAME }} browser versions with Grid ${{ env.GRID_VERSION }}" + body: "This PR contains the CHANGELOG for Node/Standalone ${{ env.BROWSER_NAME }} with specific browser versions: ${{ github.event.inputs.browser-versions }}" committer: 'Selenium CI Bot ' author: 'Selenium CI Bot ' - branch: browser-node-changelog + branch: browser-node-${{ env.BROWSER_NAME }}-changelog - name: Check outputs if: ${{ steps.cpr.outputs.pull-request-number }} run: | diff --git a/.github/workflows/release-firefox-versions.yml b/.github/workflows/release-firefox-versions.yml index 5e3c6a122..2356d0592 100644 --- a/.github/workflows/release-firefox-versions.yml +++ b/.github/workflows/release-firefox-versions.yml @@ -177,12 +177,15 @@ jobs: uses: peter-evans/create-pull-request@main with: token: ${{ secrets.SELENIUM_CI_TOKEN }} - commit-message: "[ci] Upload CHANGELOG for Node/Standalone ${{ env.BROWSER_NAME }} version with Grid ${{ env.GRID_VERSION }}" - title: "[ci] Upload CHANGELOG for Node/Standalone ${{ env.BROWSER_NAME }} version with Grid ${{ env.GRID_VERSION }}" - body: "This PR contains the CHANGELOG for Node/Standalone Firefox with specific browser versions: ${{ github.event.inputs.browser-versions }}" + commit-message: | + [ci] Upload CHANGELOG for Node/Standalone ${{ env.BROWSER_NAME }} version with Grid ${{ env.GRID_VERSION }} + + Browser versions: ${{ github.event.inputs.browser-versions }} + title: "[ci] CHANGELOG for Node/Standalone ${{ env.BROWSER_NAME }} browser versions with Grid ${{ env.GRID_VERSION }}" + body: "This PR contains the CHANGELOG for Node/Standalone ${{ env.BROWSER_NAME }} with specific browser versions: ${{ github.event.inputs.browser-versions }}" committer: 'Selenium CI Bot ' author: 'Selenium CI Bot ' - branch: browser-node-changelog + branch: browser-node-${{ env.BROWSER_NAME }}-changelog - name: Check outputs if: ${{ steps.cpr.outputs.pull-request-number }} run: | diff --git a/update_tag_in_docs_and_files.sh b/update_tag_in_docs_and_files.sh index 765cdbe32..53ad8b52d 100755 --- a/update_tag_in_docs_and_files.sh +++ b/update_tag_in_docs_and_files.sh @@ -21,7 +21,7 @@ find . \( -type d -name .git -prune \) -o -type f ! -name 'CHANGELOG.md' -print0 find . \( -type d -name .git -prune \) -o -type f ! -name 'CHANGELOG.md' -print0 | xargs -0 sed -i "s/${KEDA_TAG_PREV_VERSION}/${KEDA_TAG_VERSION}/g" # If you want to test this locally and you are using macOS, do `brew install gnu-sed` and change `sed` for `gsed`. -find . \( -type d -name .git -prune \) -o -type f ! -name 'CHANGELOG.md' -print0 | xargs -0 sed -i "s/${LATEST_TAG}/${NEXT_TAG}/g" +find . \( -type d -name .git -prune -o -type d -name 'CHANGELOG' -prune \) -o -type f ! -name 'CHANGELOG.md' -print0 | xargs -0 sed -i "s/${LATEST_TAG}/${NEXT_TAG}/g" if [[ "$NEXT_TAG" == "latest" ]] || [[ "$NEXT_TAG" == "nightly" ]]; then # If you want to test this locally and you are using macOS, do `brew install gnu-sed` and change `sed` for `gsed`.