Skip to content

Commit

Permalink
Upload?
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Jul 30, 2023
1 parent 3f12a7d commit cee573d
Showing 1 changed file with 28 additions and 29 deletions.
57 changes: 28 additions & 29 deletions .github/workflows/unique_python_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
# 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/[email protected]
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'

0 comments on commit cee573d

Please sign in to comment.