Skip to content

Commit

Permalink
Merge pull request #632 from IN-CORE/631-fix-github-action-error-in-p…
Browse files Browse the repository at this point in the history
…osting-the-container-when-merged-to-main

Fixed github action error on publishing the container when merging to…
  • Loading branch information
ywkim312 authored Nov 18, 2024
2 parents 137c35e + 4d06f3d commit a137830
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
- develop
- 'release/*'
- main-temp

tags:
- '*'
Expand All @@ -15,6 +16,7 @@ on:
- main
- develop
- 'release/*'
- main-temp

env:
MAIN_REPO: IN-CORE/pyincore
Expand Down Expand Up @@ -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=""
Expand All @@ -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
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a137830

Please sign in to comment.