From cee573d6d003283b6c15b4e50c0014af23c8d83d Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Sun, 30 Jul 2023 13:16:56 +0100 Subject: [PATCH] Upload? --- .github/workflows/unique_python_files.yml | 57 +++++++++++------------ 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/.github/workflows/unique_python_files.yml b/.github/workflows/unique_python_files.yml index fa4ceeab..bba158ce 100644 --- a/.github/workflows/unique_python_files.yml +++ b/.github/workflows/unique_python_files.yml @@ -71,32 +71,31 @@ jobs: run: | poetry run pypi-data run-sql ${{ github.workspace }}/sql/unique_python_files_combine.prql --output=parquet --memory=3 --threads=2 unique-python-files.parquet combined/*.parquet -# -# - name: Gets latest created release info -# id: latest_release_info -# uses: jossef/action-latest-release-info@v1.2.1 -# env: -# GITHUB_TOKEN: ${{ github.token }} -# -# - name: Upload Assets -# id: upload -# uses: shogo82148/actions-upload-release-asset@v1 -# with: -# upload_url: ${{ steps.latest_release_info.outputs.upload_url }} -# asset_name: unique-python-files.parquet -# asset_path: unique-python-files.parquet -# overwrite: true -# -# - name: Create download links -# run: | -# echo "${{ steps.upload.outputs.browser_download_url }}" > links/unique_python_files.txt -# -# - uses: EndBug/add-and-commit@v9 -# with: -# add: 'links/unique_python_files.txt' -# author_email: "41898282+github-actions[bot]@users.noreply.github.com" -# author_name: "commit-bot" -# message: "Add only python links for asset ${{ needs.generate-matrix.outputs.release_id }}" -# push: true -# fetch: true -# pull: '--rebase --autostash' + - name: Gets latest created release info + id: latest_release_info + uses: jossef/action-latest-release-info@v1.2.1 + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Upload Assets + id: upload + uses: shogo82148/actions-upload-release-asset@v1 + with: + upload_url: ${{ steps.latest_release_info.outputs.upload_url }} + asset_name: unique-python-files.parquet + asset_path: unique-python-files.parquet + overwrite: true + + - name: Create download links + run: | + echo "${{ steps.upload.outputs.browser_download_url }}" > links/unique_python_files.txt + + - uses: EndBug/add-and-commit@v9 + with: + add: 'links/unique_python_files.txt' + author_email: "41898282+github-actions[bot]@users.noreply.github.com" + author_name: "commit-bot" + message: "Add only python links for asset ${{ needs.generate-matrix.outputs.release_id }}" + push: true + fetch: true + pull: '--rebase --autostash'