[skip changelog] Restore globbing of nightly build artifact filename #1781
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please check if the PR fulfills these requirements
before creating one)
our contributing guidelines
UPGRADING.md
has been updated with a migration guide (for breaking changes)What kind of change does this PR introduce?
Bug fix
What is the current behavior?
During a refactoring of the "Publish Nightly Build" workflow (f96ce4b), globbing of the macOS build artifact filename in the repackaging step was accidentally lost, causing the glob pattern to be treated instead as a string and the updated package saved to a file named by that string instead of to the original filename.
This resulted in the workflow failing with errors like:
https://github.com/arduino/arduino-cli/actions/runs/2546192732
What is the new behavior?
The previous
basename
command was providing the globbing. After the refactoring,basename
is no longer needed, so an alternative way to achieve globbing is needed. It seems the preferred approach is use of an array. Since the globbing will only expand to a single filename, the array can be referenced as before by the rest of the step, since it will resolve to the first element in the array (equivalent to$PACKAGE_FILENAME[0]
).Does this PR introduce a breaking change, and is titled accordingly?
No breaking change
Other information
Demonstration run of the updated workflow in my fork here: https://github.com/per1234/arduino-cli/actions/runs/2547150008