From 11abfc3d665fbcf539c733687ee5a5aec9bea846 Mon Sep 17 00:00:00 2001 From: Cameron Showalter Date: Thu, 11 Mar 2021 15:27:31 -0900 Subject: [PATCH] Seeing if functions need to be wrapped in github's special braces --- .github/workflows/open-release.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/open-release.yml b/.github/workflows/open-release.yml index ab65695..d572843 100644 --- a/.github/workflows/open-release.yml +++ b/.github/workflows/open-release.yml @@ -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