diff --git a/.github/workflows/doc.yaml b/.github/workflows/doc.yaml index 1af6592f..53cd4c24 100644 --- a/.github/workflows/doc.yaml +++ b/.github/workflows/doc.yaml @@ -6,6 +6,7 @@ on: - main - develop - 'release/*' + - main-temp tags: - '*' @@ -15,6 +16,7 @@ on: - main - develop - 'release/*' + - main-temp env: MAIN_REPO: IN-CORE/pyincore @@ -42,7 +44,7 @@ jobs: BRANCH=${GITHUB_REF##*/} fi echo "GITHUB_BRANCH=${BRANCH}" >> $GITHUB_ENV - if [ "$BRANCH" == "main" ]; then + if [ "$BRANCH" == "main-temp" ]; then version=$(awk -F= '/^release/ { print $2}' docs/source/conf.py | sed "s/[ ']//g") tags="latest" oldversion="" @@ -51,6 +53,8 @@ jobs: tags="${tags},${version}" version=${version%.*} done + # Remove any unwanted double quotes from tags + tags=$(echo $tags | sed 's/"//g') echo "VERSION=${version}" >> $GITHUB_ENV echo "TAGS=${tags}" >> $GITHUB_ENV elif [ "$BRANCH" == "develop" ]; then @@ -61,6 +65,10 @@ jobs: echo "TAGS=${BRANCH}" >> $GITHUB_ENV fi + # debug TAGS + - name: Debug TAGS + run: echo "TAGS=${{ env.TAGS }}" + # build image - name: Build image uses: elgohr/Publish-Docker-Github-Action@3.04 diff --git a/CHANGELOG.md b/CHANGELOG.md index 031bafae..b07251b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [Unreleased] + +### Fixed +- Documentation container tagging error by github action [#631](https://github.com/IN-CORE/pyincore/issues/631) + ## [1.20.1] - 2024-11-01 ### Fixed