Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Commit

Permalink
Trigger git tag (#6)
Browse files Browse the repository at this point in the history
* Create and push tag from master branch

* Bump 0.2.1 -> 0.2.2
  • Loading branch information
cowboy-bebug committed Jun 20, 2020
1 parent 82b5d37 commit 6394da0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,24 @@ jobs:
with:
fetch-depth: 0
- name: Check for version bump
id: check_version
if: ${{ contains(github.head_ref, 'release') }}
if: ${{ startsWith(github.head_ref, 'release') }}
run: |
VERSION=$(echo -n $(git diff origin/${{ github.base_ref }} -G '__version__' app_store_scraper/__version__.py))
VERSION=$(echo "$VERSION" | sed -E "s/.*\+__version__.*([0-9]+\.[0-9]+\.[0-9]+).+/\1/")
if [ "$VERSION" = "" ]; then
echo "Bump __version__ for release"
exit 1
else
echo "::set-env name=VERSION::$VERSION"
echo "Version: $VERSION"
exit 0
fi
- name: Create tag
if: github.ref == 'refs/heads/master'
run: |
VERSION=$(echo -n $(git diff HEAD^1 -G '__version__' app_store_scraper/__version__.py))
VERSION=$(echo "$VERSION" | sed -E "s/.*\+__version__.*([0-9]+\.[0-9]+\.[0-9]+).+/\1/")
if [ "$VERSION" != "" ]; then
git tag v$VERSION
git push origin v$VERSION
echo "Create and push v$VERSION tag"
git tag v"$VERSION"
git push origin v"$VERSION"
fi
2 changes: 1 addition & 1 deletion app_store_scraper/__version__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = "app-store-scraper"
__version__ = "0.2.1"
__version__ = "0.2.2"
__description__ = "Single API ☝ App Store Review Scraper 🧹"
__author__ = "Eric Lim"
__url__ = "https://github.com/cowboy-bebug/app-store-scraper"
Expand Down

0 comments on commit 6394da0

Please sign in to comment.