From cf332c01f25116101e65420fb22815a9897f2b89 Mon Sep 17 00:00:00 2001 From: Zeglius <33781398+Zeglius@users.noreply.github.com> Date: Sat, 7 Dec 2024 17:01:10 +0100 Subject: [PATCH] Use Glob match action to obtain file paths --- .github/workflows/upload_sysext/action.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/upload_sysext/action.yml b/.github/workflows/upload_sysext/action.yml index ff47452..59d26b3 100644 --- a/.github/workflows/upload_sysext/action.yml +++ b/.github/workflows/upload_sysext/action.yml @@ -21,6 +21,17 @@ runs: - name: setup-oras uses: oras-project/setup-oras@v1.2.1 + - 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')