We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uploading any file, for example as follows:
jobs: build: steps: - uses: AButler/upload-release-assets@v3.0 with: files: "my_file.txt" repo-token: ${{ secrets.GITHUB_TOKEN }}
leads to the following error:
Error: Cannot read properties of undefined (reading 'id')
The text was updated successfully, but these errors were encountered:
I had the same issue, you can fix it by explicitly passing a value to release-tag:
release-tag
- name: ⬆️ Upload the assets uses: AButler/upload-release-assets@v3.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} files: "dist/*;LICENSE" release-tag: ${{ github.ref_name }}
It's also possible to fix it using release-id, you will need to send an HTTP GET request to GitHub Public API and parse the JSON response though.
release-id
The fallback of this action may work differently depending on the workflow and might not work with the configurations you and I have.
Also, make sure to have contents write permission:
contents
jobs: publish: permissions: contents: write
Sorry, something went wrong.
Update release.yml
5664204
AButler/upload-release-assets#42
No branches or pull requests
Uploading any file, for example as follows:
leads to the following error:
The text was updated successfully, but these errors were encountered: