mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
fix: #54
This commit is contained in:
parent
bfa150ceeb
commit
3179f40372
1 changed files with 10 additions and 2 deletions
12
action.yml
12
action.yml
|
|
@ -78,8 +78,16 @@ runs:
|
||||||
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_ref }}" ]]; then if [[ "${{ github.ref_name }}" =~ (.*)/merge ]]; then tag=pr-${BASH_REMATCH[1]}; else tag=${{ github.ref_name }}; fi; fi
|
if [[ -z "${{ github.action_repository }}" ]]
|
||||||
if [[ -z "${tag}" ]]; then tag=${{ github.action_ref }}; fi
|
then
|
||||||
|
if [[ "${{ github.ref_name }}" =~ (.*)/merge ]]
|
||||||
|
then tag=pr-${BASH_REMATCH[1]}
|
||||||
|
else
|
||||||
|
tag=${{ github.ref_name }}
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
tag=${{ github.action_ref }}
|
||||||
|
fi
|
||||||
docker run --privileged --volume ${{ github.workspace }}:/github/workspace ghcr.io/jasonn3/build-container-installer:${tag} \
|
docker run --privileged --volume ${{ github.workspace }}:/github/workspace ghcr.io/jasonn3/build-container-installer:${tag} \
|
||||||
ADDITIONAL_TEMPLATES="${{ inputs.additional_templates }}" \
|
ADDITIONAL_TEMPLATES="${{ inputs.additional_templates }}" \
|
||||||
ARCH=${{ inputs.arch }} \
|
ARCH=${{ inputs.arch }} \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue