Skip to content

TCN-858 explicitly define upload assets#1657

Merged
elliotmjackson merged 3 commits intomainfrom
ejackson/tcn-858-significant-bug-in-buf-release-perform
Dec 7, 2022
Merged

TCN-858 explicitly define upload assets#1657
elliotmjackson merged 3 commits intomainfrom
ejackson/tcn-858-significant-bug-in-buf-release-perform

Conversation

@elliotmjackson
Copy link
Contributor

To determine the files to be uploaded, pipe the result of a find command into en env var, id only tested it on a single file in the past - when it has multiple files, it finds a new line character and terminates.

as such, release fails to upload assets.

To move forward, im explicitly defining the upload assets so the release process can continue. Naturally a more elegant solution would be preferable but i think this still falls into the "win" category

${{env.ASSETS_PATH}}/protoc-gen-buf-lint-Windows-arm64.exe
${{env.ASSETS_PATH}}/protoc-gen-buf-lint-Windows-x86_64.exe
${{env.ASSETS_PATH}}/sha256.txt
${{env.ASSETS_PATH}}/sha256.txt.minisig
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the action supports glob style path patterns, so we might be able to do:

files: ${{env.ASSETS_PATH}}/*

See https://github.com/softprops/action-gh-release/blob/9114792eb2fcdea3dbb139ffd081fcb856870dcf/src/util.ts#L76-L82 for more details.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 second... will try

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

potentially the definition of overthinking it. resolved in d4e3f0d

@elliotmjackson elliotmjackson merged commit 781f1bf into main Dec 7, 2022
@elliotmjackson elliotmjackson deleted the ejackson/tcn-858-significant-bug-in-buf-release-perform branch December 7, 2022 22:35
Monirul1 pushed a commit to Monirul1/buf that referenced this pull request Apr 30, 2023
To determine the files to be uploaded, pipe the result of a find command
into en env var, id only tested it on a single file in the past - when
it has multiple files, it finds a new line character and terminates.

as such, release fails to upload assets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants