diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ef31ed..d7b7e96 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -111,7 +111,7 @@ jobs: echo "VERSION_CODE=$version_code" >> $GITHUB_ENV - name: Commit and push versionCode changes - if: ${{ contains(env.TAG_NAME, 'nightly') || inputs.release_type == 'prerelease' }} + if: ${{ inputs.release_type == '' || inputs.release_type == 'nightly' || inputs.release_type == 'prerelease' }} run: | git config --global user.name 'GitHub Actions' git config --global user.email 'actions@github.com' @@ -119,7 +119,7 @@ jobs: git commit -m "Automated build update" - name: Push changes - if: ${{ contains(env.TAG_NAME, 'nightly') || inputs.release_type == 'prerelease' }} + if: ${{ inputs.release_type == '' || inputs.release_type == 'nightly' || inputs.release_type == 'prerelease' }} uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }}