Skip to content

Commit

Permalink
181 update GitHub action version (#191)
Browse files Browse the repository at this point in the history
* Updated requirements

* Revert "Merge pull request #136 from IN-CORE/create-pull-request/patch"

This reverts commit cf8d337, reversing
changes made to 3bf1cd9.

* Fixed pytest by removed dataset (#183)

* test for merging to test-main branch

* added Tag debug

* changed doc yaml

* changed doc yaml add test-main to fire

* added line to remove the quote
  • Loading branch information
ywkim312 authored Nov 5, 2024
1 parent c2a71de commit 3bf5443
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,25 @@ jobs:
BRANCH=${GITHUB_REF##*/}
fi
echo "GITHUB_BRANCH=${BRANCH}" >> $GITHUB_ENV
if [ "$BRANCH" == "test-main" ]; then
# Extract version from conf.py and generate tags without quotes
version=$(awk -F= '/^release/ { print $2}' docs/source/conf.py | sed "s/[ ']//g")
tags="latest"
oldversion=""
while [ "${oldversion}" != "${version}" ]; do
oldversion="${version}"
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
echo "VERSION=develop" >> $GITHUB_ENV
echo "TAGS=develop" >> $GITHUB_ENV
Expand All @@ -66,6 +74,10 @@ jobs:
- name: Debug TAGS
run: echo "TAGS=${{ env.TAGS }}"

# 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

0 comments on commit 3bf5443

Please sign in to comment.