-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Glob match action to obtain file paths
- Loading branch information
Showing
1 changed file
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,17 @@ runs: | |
- name: setup-oras | ||
uses: oras-project/[email protected] | ||
|
||
- name: Find input files | ||
uses: tj-actions/glob@v22 | ||
id: glob | ||
working-directory: ${{ inputs.working-directory }} | ||
with: | ||
pattern: ${{ inputs.raw-files }} | ||
match-directories: false | ||
read-gitignore: false | ||
follow-symbolic-links: true | ||
continue-on-error: false | ||
|
||
- name: Process and upload extensions | ||
shell: bash | ||
env: | ||
|
@@ -33,7 +44,8 @@ runs: | |
OSTREE_VERSION=$(source ${BASETREE}/usr/lib/os-release; echo $OSTREE_VERSION) | ||
# Process each raw file | ||
for pattern in ${{ inputs.raw-files }}; do | ||
for pattern in ${{ steps.glob.outputs.paths }} | ||
do | ||
for file in $pattern; do | ||
# Check extension type | ||
is_sysext=$(systemd-dissect --json=short "$file" | jq -r '.useSystemExtension == true') | ||
|