chore: remove ACTION_REF and ACTION_REPO action inputs (#49)
* Remove ACTION_REF and ACTION_REPO action inputs * Remove duplicate github. * Remove inputs from test-iso.yml workflow * I highly doubt this will work, but let's try it anyway * Let's try a different approach. Don't clone the repo at all, as it should already be there. Let's just set the working directory. * Do not introduce a breaking change * Say the unused variables will be removed soon
This commit is contained in:
parent
aa4aecdc7e
commit
c5f825fd3e
|
@ -52,8 +52,6 @@ jobs:
|
||||||
IMAGE_REPO: 'ghcr.io/ublue-os'
|
IMAGE_REPO: 'ghcr.io/ublue-os'
|
||||||
VARIANT: 'Kinoite'
|
VARIANT: 'Kinoite'
|
||||||
VERSION: ${{ matrix.version }}
|
VERSION: ${{ matrix.version }}
|
||||||
ACTION_REPO: ${{ github.repository }}
|
|
||||||
ACTION_REF: ${{ github.ref }}
|
|
||||||
SECURE_BOOT_KEY_URL: ${{ matrix.SECURE_BOOT_KEY_URL }}
|
SECURE_BOOT_KEY_URL: ${{ matrix.SECURE_BOOT_KEY_URL }}
|
||||||
ENROLLMENT_PASSWORD: ${{ matrix.ENROLLMENT_PASSWORD }}
|
ENROLLMENT_PASSWORD: ${{ matrix.ENROLLMENT_PASSWORD }}
|
||||||
|
|
||||||
|
|
21
action.yml
21
action.yml
|
@ -40,13 +40,11 @@ inputs:
|
||||||
description: Secure boot key that is installed from URL location
|
description: Secure boot key that is installed from URL location
|
||||||
required: false
|
required: false
|
||||||
ACTION_REPO:
|
ACTION_REPO:
|
||||||
description: Repository with the build action
|
deprecationMessage: This variable is no longer used and will be removed in a future version
|
||||||
required: false
|
required: false
|
||||||
default: ${{ github.repository }}
|
|
||||||
ACTION_REF:
|
ACTION_REF:
|
||||||
description: Repository ref for the build action
|
deprecationMessage: This variable is no longer used and will be removed in a future version
|
||||||
required: false
|
required: false
|
||||||
default: ${{ github.ref }}
|
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
output-directory:
|
output-directory:
|
||||||
|
@ -78,19 +76,13 @@ runs:
|
||||||
echo "Host must be mounted as /host in order to make more space"
|
echo "Host must be mounted as /host in order to make more space"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Install make and git
|
- name: Install Make
|
||||||
shell: bash
|
shell: bash
|
||||||
run: dnf install -y make git
|
run: dnf install -y make
|
||||||
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
repository: ${{ inputs.ACTION_REPO }}
|
|
||||||
ref: ${{ inputs.ACTION_REF }}
|
|
||||||
submodules: recursive
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
|
working-directory: ${{ github.action_path }}
|
||||||
run: make install-deps
|
run: make install-deps
|
||||||
|
|
||||||
- name: Lowercase Registry
|
- name: Lowercase Registry
|
||||||
|
@ -101,6 +93,7 @@ runs:
|
||||||
|
|
||||||
- name: Download image
|
- name: Download image
|
||||||
shell: bash
|
shell: bash
|
||||||
|
working-directory: ${{ github.action_path }}
|
||||||
run: |
|
run: |
|
||||||
make container/${{ inputs.IMAGE_NAME }}-${{ inputs.IMAGE_TAG || inputs.VERSION }} \
|
make container/${{ inputs.IMAGE_NAME }}-${{ inputs.IMAGE_TAG || inputs.VERSION }} \
|
||||||
ARCH=${{ inputs.ARCH }} \
|
ARCH=${{ inputs.ARCH }} \
|
||||||
|
@ -113,6 +106,7 @@ runs:
|
||||||
|
|
||||||
- name: Create boot.iso
|
- name: Create boot.iso
|
||||||
shell: bash
|
shell: bash
|
||||||
|
working-directory: ${{ github.action_path }}
|
||||||
run: |
|
run: |
|
||||||
make boot.iso \
|
make boot.iso \
|
||||||
ARCH=${{ inputs.ARCH }} \
|
ARCH=${{ inputs.ARCH }} \
|
||||||
|
@ -129,6 +123,7 @@ runs:
|
||||||
- name: Create deploy.iso and generate sha256 checksum
|
- name: Create deploy.iso and generate sha256 checksum
|
||||||
shell: bash
|
shell: bash
|
||||||
id: final
|
id: final
|
||||||
|
working-directory: ${{ github.action_path }}
|
||||||
run: |
|
run: |
|
||||||
make ${{ inputs.IMAGE_NAME }}-${{ inputs.IMAGE_TAG || inputs.VERSION }}.iso \
|
make ${{ inputs.IMAGE_NAME }}-${{ inputs.IMAGE_TAG || inputs.VERSION }}.iso \
|
||||||
ARCH=${{ inputs.ARCH }} \
|
ARCH=${{ inputs.ARCH }} \
|
||||||
|
|
Loading…
Reference in New Issue