From e6fbde8bc79d6ddccdf1c8dd20bd9987fb4e3ebf Mon Sep 17 00:00:00 2001 From: ajbalogh Date: Wed, 4 Nov 2020 16:31:56 -0800 Subject: [PATCH] fix build --- .github/workflows/generate.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 439ec404..386b25c2 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -44,13 +44,17 @@ jobs: id: file_changes uses: trilom/file-changes-action@v1.2.3 + - name: Output changed files + id: changed_files + run: echo ${{steps.file_changes.outputs.files_modified}} + - name: Get VERSION number id: get_version - if: true == contains(${{steps.file_changes.outputs.files_modified}}, 'VERSION') + if: true == contains(steps.file_changes.outputs.files_modified, 'VERSION') run: echo "::set-output name=version::$(cat VERSION)" - name: Create Release - if: true == contains(${{steps.file_changes.outputs.files_modified}}, 'VERSION') + if: true == contains(steps.file_changes.outputs.files_modified, 'VERSION') uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -61,7 +65,7 @@ jobs: prerelease: false - name: Upload Assets To Release - if: true == contains(${{steps.file_changes.outputs.files_modified}}, 'VERSION') + if: true == contains(steps.file_changes.outputs.files_modified, 'VERSION') uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} @@ -71,10 +75,10 @@ jobs: file_glob: true - name: Upload Assets to Pypi + if: true == contains(steps.file_changes.outputs.files_modified, 'VERSION') env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - if: true == contains(${{steps.file_changes.outputs.files_modified}}, 'VERSION') run: | twine upload dist/*