Skip to content

Commit

Permalink
Updated to better names. Trying out automatic minor version bump too
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameronsplaze committed Mar 12, 2021
1 parent d0834aa commit b28e4e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/open-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ jobs:

- name: Save version type
# Whichever one return's true, will let their 'echo' statement run:
# Must wrap in "(*) || true" to prevent it from exiting on failure, until
# 'allow-failure' is finished getting added: https://github.com/actions/toolkit/issues/399
run: |
${{ contains(github.event.pull_request.labels.*.name, 'major') }} && echo "version_type=major" >> $GITHUB_ENV
${{ contains(github.event.pull_request.labels.*.name, 'minor') }} && echo "version_type=minor" >> $GITHUB_ENV
${{ contains(github.event.pull_request.labels.*.name, 'patch') }} && echo "version_type=patch" >> $GITHUB_ENV
(${{ contains(github.event.pull_request.labels.*.name, 'major') }} && echo "version_type=major" >> $GITHUB_ENV) || true
(${{ contains(github.event.pull_request.labels.*.name, 'minor') }} && echo "version_type=minor" >> $GITHUB_ENV) || true
(${{ contains(github.event.pull_request.labels.*.name, 'patch') }} && echo "version_type=patch" >> $GITHUB_ENV) || true
- name: Create a Release
uses: zendesk/action-create-release@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-pytest.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Runs the test suite
name: Run test suite

on: [pull_request, push]

jobs:
run-test-suite:
run-tests:
runs-on: ubuntu-latest
steps:
# Get the code:
Expand Down

0 comments on commit b28e4e9

Please sign in to comment.