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/*