Skip to content

Commit bdc1c7a

Browse files
committed
[build]: update for release notes generate
[deploy] Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent 03ecaea commit bdc1c7a

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ body:
6464
attributes:
6565
label: Selenium Grid chart version (chart version)
6666
description: What version of Selenium Grid chart are you using?
67-
placeholder: 0.30.0?
67+
placeholder: 0.31.1?
6868
validations:
6969
required: false

.github/workflows/deploy.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
required: false
1414
type: boolean
1515
default: false
16+
skip-commit:
17+
description: 'Skip the commit'
18+
required: false
19+
type: boolean
20+
default: false
1621
push:
1722
branches:
1823
- trunk
@@ -121,18 +126,27 @@ jobs:
121126
github_token: ${{ secrets.GITHUB_TOKEN }}
122127
delete_release: true
123128
- name: Commit files
129+
if: env.LATEST_TAG != env.NEXT_TAG && github.event.inputs.skip-commit != 'true'
124130
run: |
125131
git config --local user.email "[email protected]"
126132
git config --local user.name "Selenium CI Bot"
127133
git commit -m "Update tag in docs and files" -a
128134
- name: Push changes
135+
if: env.LATEST_TAG != env.NEXT_TAG && github.event.inputs.skip-commit != 'true'
129136
uses: ad-m/github-push-action@master
130137
with:
131138
github_token: ${{ secrets.SELENIUM_CI_TOKEN }}
132139
branch: trunk
133140
- name: Create release notes (release_notes.md)
134141
run: ./generate_release_notes.sh ${LATEST_TAG} origin/trunk ${GRID_VERSION} ${BUILD_DATE}
142+
- name: Upload release notes
143+
uses: actions/upload-artifact@main
144+
with:
145+
name: release_notes
146+
path: ./release_notes.md
147+
if-no-files-found: ignore
135148
- name: Create Release
149+
if: env.LATEST_TAG != env.NEXT_TAG && github.event.inputs.skip-commit != 'true'
136150
id: create_release
137151
uses: softprops/action-gh-release@master
138152
with:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ edge_upgrade_version:
238238

239239
# https://github.com/SeleniumHQ/docker-selenium/issues/992
240240
# Additional tags for browser images
241-
tag_and_push_browser_images: tag_and_push_chrome_images tag_and_push_firefox_images tag_and_push_edge_images
241+
tag_and_push_browser_images: tag_and_push_chrome_images tag_and_push_chromium_images tag_and_push_firefox_images tag_and_push_edge_images
242242

243243
tag_and_push_chrome_images:
244244
./tag_and_push_browser_images.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) $(PUSH_IMAGE) chrome

generate_release_notes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ EDGEDRIVER_VERSION=$(docker run --rm ${NAMESPACE}/node-edge:${TAG_VERSION} msedg
2121
FIREFOX_VERSION=$(docker run --rm ${NAMESPACE}/node-firefox:${TAG_VERSION} firefox --version | awk '{print $3}')
2222
GECKODRIVER_VERSION=$(docker run --rm ${NAMESPACE}/node-firefox:${TAG_VERSION} geckodriver --version | awk 'NR==1{print $2}')
2323
FFMPEG_VERSION=$(docker run --entrypoint="" --rm ${NAMESPACE}/video:${FFMPEG_TAG_VERSION}-${BUILD_DATE} ffmpeg -version | awk '{print $3}' | head -n 1)
24-
RCLONE_VERSION=$(docker run --entrypoint="" --rm ${NAMESPACE}/video:${FFMPEG_TAG_VERSION}-${BUILD_DATE} rclone version | head -n 1 | awk '{print $2}') | tr -d 'v'
24+
RCLONE_VERSION=$(docker run --entrypoint="" --rm ${NAMESPACE}/video:${FFMPEG_TAG_VERSION}-${BUILD_DATE} rclone version | head -n 1 | awk '{print $2}' | tr -d 'v')
2525
JRE_VERSION=$(docker run --entrypoint="" --rm ${NAMESPACE}/base:${TAG_VERSION} java --version | grep -oP '\b\d+\.\d+\.\d+\b' | head -1)
2626
FIREFOX_ARM64_VERSION=$(docker run --rm --platform linux/arm64 ${NAMESPACE}/node-firefox:${TAG_VERSION} firefox --version | awk '{print $3}')
2727
CHROMIUM_VERSION=$(docker run --rm ${NAMESPACE}/node-chromium:${TAG_VERSION} chromium --version | awk '{print $2}')

update_tag_in_docs_and_files.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if [ "$latest_chart_app_version" == $LATEST_TAG ] && [ "$latest_chart_app_versio
5252
echo -e "\033[0;32m NEXT_CHART_VERSION -> ${next_chart_version}\033[0m"
5353
# If you want to test this locally and you are using macOS, do `brew install gnu-sed` and change `sed` for `gsed`.
5454
find . \( -type d -name .git -prune \) -o -type f -wholename '*/selenium-grid/Chart.yaml' -print0 | xargs -0 sed -i "s/${latest_chart_version}/${next_chart_version}/g"
55-
find . \( -type d -name .git -prune \) -o -type f -name 'bug_report.yaml' -print0 | xargs -0 sed -i "s/${latest_chart_version}/${next_chart_version}/g"
55+
find . \( -type d -name .git -prune \) -o -type f -wholename '*/bug_report.yml' -print0 | xargs -0 sed -i "s/${latest_chart_version}/${next_chart_version}/g"
5656
fi
5757

5858
git diff | cat

0 commit comments

Comments
 (0)