Skip to content

Commit f591b7f

Browse files
authored
Merge pull request #383 from espressif-abhikroy/components/console_simple_init_1
fix(console): Fixed bump version check in publish-docs yml
2 parents ffd3736 + b6e2ac2 commit f591b7f

File tree

6 files changed

+17
-7
lines changed

6 files changed

+17
-7
lines changed

.github/workflows/publish-docs-component.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
sudo apt-get -y install doxygen clang python3-pip
5151
python -m pip install breathe recommonmark esp-docs==1.4.1
5252
for comp in `ls components`; do
53-
if [ -d $GITHUB_WORKSPACE/docs/${comp} ]; then
53+
if [[ -d $GITHUB_WORKSPACE/docs/${comp} ]]; then
5454
cd $GITHUB_WORKSPACE/docs/${comp}
5555
if [[ "${{ env.BUMP_COMPONENT }}" == "${comp}" ]]; then
5656
echo "Building specific version of ${comp} (${{ env.BUMP_VERSION }})"
@@ -69,7 +69,7 @@ jobs:
6969
export GIT_VER=$(git describe --always)
7070
export GITHUB_REF_NAME=latest
7171
for comp in `ls components`; do
72-
if [ -d $GITHUB_WORKSPACE/docs/${comp} ]; then
72+
if [[ -d $GITHUB_WORKSPACE/docs/${comp} ]]; then
7373
echo "Deploying latest of ${comp}"
7474
export DOCS_BUILD_DIR=$GITHUB_WORKSPACE/docs/${comp}
7575
export DOCS_DEPLOY_PATH=$DOCS_DEPLOY_PATH_ORIG/${comp}
@@ -78,8 +78,8 @@ jobs:
7878
fi
7979
done;
8080
# Deploy docs with version path
81-
if [[ "${{ env.BUMP_VERSION }}" != "" ]] && [[ -d $GITHUB_WORKSPACE/docs/${comp} ]]; then
82-
echo "Deploying specific version of ${comp} (${{ env.BUMP_VERSION }})"
81+
if [[ "${{ env.BUMP_VERSION }}" != "" ]] && [[ -d $GITHUB_WORKSPACE/docs/${{ env.BUMP_COMPONENT }} ]]; then
82+
echo "Deploying specific version of ${{ env.BUMP_COMPONENT }} (${{ env.BUMP_VERSION }})"
8383
cd $GITHUB_WORKSPACE/docs/${{ env.BUMP_COMPONENT }}
8484
export GITHUB_REF_NAME=${{ env.BUMP_VERSION }}
8585
deploy-docs

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ Please refer to instructions in [ESP-IDF](https://github.com/espressif/esp-idf)
3333

3434
* Brief introduction [README](components/esp_mqtt_cxx/README.md)
3535
* Full html [documentation](https://docs.espressif.com/projects/esp-protocols/esp_mqtt_cxx/docs/latest/index.html)
36+
37+
### console_simple_init
38+
39+
* Brief introduction [README](components/console_simple_init/README.md)

components/console_simple_init/.cz.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ commitizen:
33
bump_message: 'bump(console): $current_version -> $new_version'
44
pre_bump_hooks: python ../../ci/changelog.py console_simple_init
55
tag_format: console_simple_init-v$version
6-
version: 1.0.1
6+
version: 1.0.2
77
version_files:
88
- idf_component.yml

components/console_simple_init/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [1.0.2](https://github.com/espressif/esp-protocols/commits/console_simple_init-v1.0.2)
4+
5+
### Bug Fixes
6+
7+
- Fixed bump version check in publish-docs yml ([e834d47](https://github.com/espressif/esp-protocols/commit/e834d47))
8+
39
## [1.0.1](https://github.com/espressif/esp-protocols/commits/console_simple_init-v1.0.1)
410

511
### Bug Fixes

components/console_simple_init/examples/console_basic/main/console_basic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
int do_user_cmd(int argc, char **argv)
1212
{
13-
printf("Hello from user command\n");
13+
printf("Hello from user command.\n");
1414
return 0;
1515
}
1616

components/console_simple_init/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 1.0.1
1+
version: 1.0.2
22
description: The component provides helper functions for easy initialization and start of esp console.
33
url: https://github.com/espressif/esp-protocols/tree/master/components/console_simple_init
44
dependencies:

0 commit comments

Comments
 (0)