mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
use env instead of var directly
This commit is contained in:
parent
c3dfff5c5b
commit
bc7f26bc2a
1 changed files with 6 additions and 3 deletions
|
|
@ -122,18 +122,21 @@ runs:
|
||||||
mkdir /cache/skopeo || true
|
mkdir /cache/skopeo || true
|
||||||
|
|
||||||
- name: Run docker image
|
- name: Run docker image
|
||||||
|
env:
|
||||||
|
ACTION_REPO: ${{ github.action_repository }}
|
||||||
|
ACTION_REF: ${{ github.action_ref }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
# Check if running inside of the action repo
|
# Check if running inside of the action repo
|
||||||
if [[ -z "${{ github.action_repository }}" ]]
|
if [[ -z "${ACTION_REPO}" || "${ACTION_REPO}" == "${{ github.repository }}" ]]
|
||||||
then
|
then
|
||||||
if [[ "${{ github.ref_name }}" =~ (.*)/merge ]]
|
if [[ "${{ github.ref_name }}" =~ (.*)/merge ]]
|
||||||
then tag=pr-${BASH_REMATCH[1]}
|
then tag=pr-${BASH_REMATCH[1]}
|
||||||
else
|
else
|
||||||
tag=${{ github.ref_name }}
|
tag=${ACTION_REF}
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
tag=${{ github.action_ref }}
|
tag=${ACTION_REF}
|
||||||
fi
|
fi
|
||||||
if [[ "${{ inputs.enable_cache_dnf }}" == "true" ]]
|
if [[ "${{ inputs.enable_cache_dnf }}" == "true" ]]
|
||||||
then
|
then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue