Skip to content

Commit 4d06f3d

Browse files
committed
Fixed github action error on publishing the container when merging to main branch
1 parent 137c35e commit 4d06f3d

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/doc.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
- develop
88
- 'release/*'
9+
- main-temp
910

1011
tags:
1112
- '*'
@@ -15,6 +16,7 @@ on:
1516
- main
1617
- develop
1718
- 'release/*'
19+
- main-temp
1820

1921
env:
2022
MAIN_REPO: IN-CORE/pyincore
@@ -42,7 +44,7 @@ jobs:
4244
BRANCH=${GITHUB_REF##*/}
4345
fi
4446
echo "GITHUB_BRANCH=${BRANCH}" >> $GITHUB_ENV
45-
if [ "$BRANCH" == "main" ]; then
47+
if [ "$BRANCH" == "main-temp" ]; then
4648
version=$(awk -F= '/^release/ { print $2}' docs/source/conf.py | sed "s/[ ']//g")
4749
tags="latest"
4850
oldversion=""
@@ -51,6 +53,8 @@ jobs:
5153
tags="${tags},${version}"
5254
version=${version%.*}
5355
done
56+
# Remove any unwanted double quotes from tags
57+
tags=$(echo $tags | sed 's/"//g')
5458
echo "VERSION=${version}" >> $GITHUB_ENV
5559
echo "TAGS=${tags}" >> $GITHUB_ENV
5660
elif [ "$BRANCH" == "develop" ]; then
@@ -61,6 +65,10 @@ jobs:
6165
echo "TAGS=${BRANCH}" >> $GITHUB_ENV
6266
fi
6367
68+
# debug TAGS
69+
- name: Debug TAGS
70+
run: echo "TAGS=${{ env.TAGS }}"
71+
6472
# build image
6573
- name: Build image
6674
uses: elgohr/Publish-Docker-Github-Action@3.04

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [Unreleased]
9+
10+
### Fixed
11+
- Documentation container tagging error by github action [#631](https://github.com/IN-CORE/pyincore/issues/631)
12+
813
## [1.20.1] - 2024-11-01
914

1015
### Fixed

0 commit comments

Comments
 (0)