1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 02:47:56 +01:00

Fix var reference (#56)

This commit is contained in:
Jason N 2024-03-11 17:08:54 -04:00 committed by GitHub
parent c3dfff5c5b
commit df936e3365
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,18 +122,21 @@ runs:
mkdir /cache/skopeo || true
- name: Run docker image
env:
ACTION_REPO: ${{ github.action_repository }}
ACTION_REF: ${{ github.action_ref }}
shell: bash
run: |
# Check if running inside of the action repo
if [[ -z "${{ github.action_repository }}" ]]
if [[ -z "${ACTION_REPO}" || "${ACTION_REPO}" == "${{ github.repository }}" ]]
then
if [[ "${{ github.ref_name }}" =~ (.*)/merge ]]
then tag=pr-${BASH_REMATCH[1]}
else
tag=${{ github.ref_name }}
tag=${ACTION_REF}
fi
else
tag=${{ github.action_ref }}
tag=${ACTION_REF}
fi
if [[ "${{ inputs.enable_cache_dnf }}" == "true" ]]
then