Open
Description
Hi, would it be possible to have a reverse: bool
flag for globs?
I need to compile a project against all nvidia driver versions (as internal structs can change over time), but the upload order is slightly inconvenient to grab the latest files as they are sorted in numerical order, e.g.:
nvibrant-v515.86.01-v1.0.1.bin
nvibrant-v520.56.06-v1.0.1.bin
nvibrant-v520.61.05-v1.0.1.bin
nvibrant-v520.61.07-v1.0.1.bin
nvibrant-v525.105.17-v1.0.1.bin
...
nvibrant-v570.133.07-v1.0.1.bin
nvibrant-v570.86.15-v1.0.1.bin
If not, how could I achieve it? Was thinking on doing something like this, but haven't tested:
- name: Reverse files
id: reverse_files
run: echo "files=$(ls -1 release/ | sort -r)" >> "$GITHUB_OUTPUT"
- name: Create release
uses: softprops/action-gh-release@v2
with:
name: Release v${{env.GHA_VERSION}}
tag_name: v${{env.GHA_VERSION}}
files: ${{steps.reverse_files.outputs.files}}
Bit of an unconventional situation, I know 😅
Thanks!
Update: I tar gzipped them, solves my problem. But would be nice to have reverse nevertheless :)
Metadata
Metadata
Assignees
Labels
No labels