Skip to content

Commit

Permalink
Merge pull request espressif#383 from espressif-abhikroy/components/c…
Browse files Browse the repository at this point in the history
…onsole_simple_init_1

fix(console): Fixed bump version check in publish-docs yml
  • Loading branch information
david-cermak authored Oct 13, 2023
2 parents ffd3736 + b6e2ac2 commit f591b7f
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-docs-component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
sudo apt-get -y install doxygen clang python3-pip
python -m pip install breathe recommonmark esp-docs==1.4.1
for comp in `ls components`; do
if [ -d $GITHUB_WORKSPACE/docs/${comp} ]; then
if [[ -d $GITHUB_WORKSPACE/docs/${comp} ]]; then
cd $GITHUB_WORKSPACE/docs/${comp}
if [[ "${{ env.BUMP_COMPONENT }}" == "${comp}" ]]; then
echo "Building specific version of ${comp} (${{ env.BUMP_VERSION }})"
Expand All @@ -69,7 +69,7 @@ jobs:
export GIT_VER=$(git describe --always)
export GITHUB_REF_NAME=latest
for comp in `ls components`; do
if [ -d $GITHUB_WORKSPACE/docs/${comp} ]; then
if [[ -d $GITHUB_WORKSPACE/docs/${comp} ]]; then
echo "Deploying latest of ${comp}"
export DOCS_BUILD_DIR=$GITHUB_WORKSPACE/docs/${comp}
export DOCS_DEPLOY_PATH=$DOCS_DEPLOY_PATH_ORIG/${comp}
Expand All @@ -78,8 +78,8 @@ jobs:
fi
done;
# Deploy docs with version path
if [[ "${{ env.BUMP_VERSION }}" != "" ]] && [[ -d $GITHUB_WORKSPACE/docs/${comp} ]]; then
echo "Deploying specific version of ${comp} (${{ env.BUMP_VERSION }})"
if [[ "${{ env.BUMP_VERSION }}" != "" ]] && [[ -d $GITHUB_WORKSPACE/docs/${{ env.BUMP_COMPONENT }} ]]; then
echo "Deploying specific version of ${{ env.BUMP_COMPONENT }} (${{ env.BUMP_VERSION }})"
cd $GITHUB_WORKSPACE/docs/${{ env.BUMP_COMPONENT }}
export GITHUB_REF_NAME=${{ env.BUMP_VERSION }}
deploy-docs
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ Please refer to instructions in [ESP-IDF](https://github.com/espressif/esp-idf)

* Brief introduction [README](components/esp_mqtt_cxx/README.md)
* Full html [documentation](https://docs.espressif.com/projects/esp-protocols/esp_mqtt_cxx/docs/latest/index.html)

### console_simple_init

* Brief introduction [README](components/console_simple_init/README.md)
2 changes: 1 addition & 1 deletion components/console_simple_init/.cz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ commitizen:
bump_message: 'bump(console): $current_version -> $new_version'
pre_bump_hooks: python ../../ci/changelog.py console_simple_init
tag_format: console_simple_init-v$version
version: 1.0.1
version: 1.0.2
version_files:
- idf_component.yml
6 changes: 6 additions & 0 deletions components/console_simple_init/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [1.0.2](https://github.com/espressif/esp-protocols/commits/console_simple_init-v1.0.2)

### Bug Fixes

- Fixed bump version check in publish-docs yml ([e834d47](https://github.com/espressif/esp-protocols/commit/e834d47))

## [1.0.1](https://github.com/espressif/esp-protocols/commits/console_simple_init-v1.0.1)

### Bug Fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

int do_user_cmd(int argc, char **argv)
{
printf("Hello from user command\n");
printf("Hello from user command.\n");
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion components/console_simple_init/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.0.1
version: 1.0.2
description: The component provides helper functions for easy initialization and start of esp console.
url: https://github.com/espressif/esp-protocols/tree/master/components/console_simple_init
dependencies:
Expand Down

0 comments on commit f591b7f

Please sign in to comment.