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:
Robert Sturla 2024-02-29 19:49:22 +00:00 committed by GitHub
parent aa4aecdc7e
commit c5f825fd3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 15 deletions

View File

@ -52,8 +52,6 @@ jobs:
IMAGE_REPO: 'ghcr.io/ublue-os'
VARIANT: 'Kinoite'
VERSION: ${{ matrix.version }}
ACTION_REPO: ${{ github.repository }}
ACTION_REF: ${{ github.ref }}
SECURE_BOOT_KEY_URL: ${{ matrix.SECURE_BOOT_KEY_URL }}
ENROLLMENT_PASSWORD: ${{ matrix.ENROLLMENT_PASSWORD }}

View File

@ -40,13 +40,11 @@ inputs:
description: Secure boot key that is installed from URL location
required: false
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
default: ${{ github.repository }}
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
default: ${{ github.ref }}
outputs:
output-directory:
@ -78,19 +76,13 @@ runs:
echo "Host must be mounted as /host in order to make more space"
fi
- name: Install make and git
- name: Install Make
shell: bash
run: dnf install -y make git
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: ${{ inputs.ACTION_REPO }}
ref: ${{ inputs.ACTION_REF }}
submodules: recursive
run: dnf install -y make
- name: Install dependencies
shell: bash
working-directory: ${{ github.action_path }}
run: make install-deps
- name: Lowercase Registry
@ -101,6 +93,7 @@ runs:
- name: Download image
shell: bash
working-directory: ${{ github.action_path }}
run: |
make container/${{ inputs.IMAGE_NAME }}-${{ inputs.IMAGE_TAG || inputs.VERSION }} \
ARCH=${{ inputs.ARCH }} \
@ -113,6 +106,7 @@ runs:
- name: Create boot.iso
shell: bash
working-directory: ${{ github.action_path }}
run: |
make boot.iso \
ARCH=${{ inputs.ARCH }} \
@ -129,6 +123,7 @@ runs:
- name: Create deploy.iso and generate sha256 checksum
shell: bash
id: final
working-directory: ${{ github.action_path }}
run: |
make ${{ inputs.IMAGE_NAME }}-${{ inputs.IMAGE_TAG || inputs.VERSION }}.iso \
ARCH=${{ inputs.ARCH }} \