Skip to content

Commit

Permalink
Use Glob match action to obtain file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeglius committed Dec 7, 2024
1 parent 453d863 commit cf332c0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/upload_sysext/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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')
Expand Down

0 comments on commit cf332c0

Please sign in to comment.