Skip to content

Commit

Permalink
Seeing if functions need to be wrapped in github's special braces
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameronsplaze committed Mar 12, 2021
1 parent a244961 commit 11abfc3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/open-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ jobs:
- uses: actions/checkout@v2

- name: Save version type
uses: actions/github-script@v3
# Whichever one return's true, will let their 'echo' statement run:
with:
script: |
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
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
- name: Create a Release
uses: zendesk/action-create-release@v1
Expand Down

0 comments on commit 11abfc3

Please sign in to comment.