From eb2d011838ba71cd77836294a9d27883e792ae5a Mon Sep 17 00:00:00 2001 From: Telmo Marques Date: Sun, 26 Apr 2020 13:00:43 -0400 Subject: [PATCH] test --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bf43c53..ae7e52e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,4 @@ name: C/C++ CI -env: - isReleaseCandidate: ${{ contains(github.ref, '-rc') }} - isFinalRelease: ${{ !contains(github.ref, '-rc') }} on: push: @@ -9,6 +6,9 @@ on: - '*' tags: - '*' +env: + isReleaseCandidate: ${{ contains(github.ref, 'tags') && contains(github.ref, '-rc') }} + isFinalRelease: ${{ contains(github.ref, 'tags') && !contains(github.ref, '-rc') }} jobs: build: @@ -19,7 +19,7 @@ jobs: - name: Dump GitHub context env: - GITHUB_CONTEXT: ${{ toJson(github) }} + GITHUB_CONTEXT: ${{ toJson(env) }} run: echo "$GITHUB_CONTEXT" # - name: Checkout source code