From a38f8a8d565e9bb6074a15a462d089a0a8446102 Mon Sep 17 00:00:00 2001 From: "Jason N." <33561705+JasonN3@users.noreply.github.com> Date: Wed, 20 Mar 2024 09:57:58 -0400 Subject: [PATCH] consistent var names and refresh repos --- action.yml | 4 ++-- entrypoint.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index e830f53..dc3b3bf 100644 --- a/action.yml +++ b/action.yml @@ -178,9 +178,9 @@ runs: vars="${vars} FLATPAK_REMOTE_REFS_DIR=\"${{ inputs.flatpak_remote_refs_dir }}\"" fi fi - if [[ -n "${{ inputs.secrets }}" ]] + if [[ -n "${{ inputs.secrets_dir }}" ]] then - volumes="--volume ${{ inputs.secrets }}:/run/secrets" + volumes="--volume ${{ inputs.secrets_dir }}:/run/secrets" fi docker run --privileged ${volumes} --volume ${{ github.workspace }}:/github/workspace/ ${cache} ${image}:${tag} \ ADDITIONAL_TEMPLATES="${{ inputs.additional_templates }}" \ diff --git a/entrypoint.sh b/entrypoint.sh index e7c579f..b6700f3 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,6 +5,8 @@ set -ex # Create /dev/loop0 if it doesn't already exist. `losetup` has an issue creating it during the first run mknod -m 0660 /dev/loop0 b 7 0 2>/dev/null || true +subscription-manager refresh || true + for i do key=$(echo ${i} | cut -d= -f1)