Compare commits

4 Commits

Author SHA1 Message Date
7776e05517 Merge pull request #1 from josephbmanley/pipeline/semver
Intergrate with semver action
2020-01-31 19:59:19 -05:00
783ab1cf1d Intergrate with semver action 2020-01-31 19:58:49 -05:00
57c4293c1c Add CODEOWNERS file 2020-01-25 01:50:43 -05:00
37fcaa8485 Update Build Badge 2020-01-25 01:45:45 -05:00
4 changed files with 8 additions and 21 deletions

1
.github/CODEOWNERS vendored Normal file
View File

@@ -0,0 +1 @@
* @josephbmanley

View File

@@ -14,12 +14,10 @@ jobs:
with:
python-version: 3.7
- name: Update Version
run: |
pip install bumpversion
export regex="([0-9]+.[0-9]+.[0-9]+)"
echo ${{ github.ref }} > tag.txt
VERSION=`grep -Po "${regex}" tag.txt`
bumpversion minor --no-tag --new-version ${VERSION}
id: semver
uses: RightBrain-Networks/semver-action@1.0.0
with:
mode: get
- name: Install dependencies
run: |
python -m pip install --upgrade pip

View File

@@ -8,24 +8,12 @@ on:
jobs:
CheckVersion:
runs-on: ubuntu-latest
container:
image: rightbrainnetworks/auto-semver
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Run auto-semver
- name: Run Auto-Semver
id: semver
run: |
export regex='^\\s*current_version\\s*=\\s*\\K[^\\s]+'
export RETURN_STATUS=`semver -n`
echo "Semver Return Status: ${RETURN_STATUS}"
export SEMVER_NEW_VERSION=`grep -Po '${regex}' .bumpversion.cfg`
export VERSION=`semver_get_version -d`
echo ::set-output name=RETURN_STATUS::$RETURN_STATUS
echo ::set-output name=SEMVER_NEW_VERSION::$SEMVER_NEW_VERSION
echo ::set-output name=VERSION::$VERSION
uses: RightBrain-Networks/semver-action@1.0.0
- name: Create Release
id: create_release
uses: actions/create-release@v1

View File

@@ -1,4 +1,4 @@
![Version](https://img.shields.io/pypi/v/cognito-oauthtools) ![Build Status](https://img.shields.io/github/workflow/status/josephbmanley/cognito-oauthtools/build/master) ![Supported Versions](https://img.shields.io/pypi/pyversions/cognito-oauthtools)
![Build & Publish](https://github.com/josephbmanley/cognito-oauthtools/workflows/Build%20&%20Publish/badge.svg) ![Version](https://img.shields.io/pypi/v/cognito-oauthtools) ![Supported Versions](https://img.shields.io/pypi/pyversions/cognito-oauthtools)
# cognito-oauthtools