diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 4a5153b..a3b3650 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -87,7 +87,6 @@ jobs: image_repo: ${{ env.IMAGE_REPO}} version: ${{ env.VERSION }} variant: ${{ env.VARIANT }} - action_version: ${{ steps.meta.outputs.tags || 'latest' }} - name: Rename ISO run: | diff --git a/README.md b/README.md index e11a6cb..82217f9 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,6 @@ This action is designed to be called from a GitHub workflow using the following image_repo: ${{ env.IMAGE_REPO}} version: ${{ env.VERSION }} variant: ${{ env.VARIANT }} - action_version: v1.0.0 ``` See [Customizing](#customizing) for information about customizing the ISO that gets created using `with` diff --git a/action.yml b/action.yml index 985bd01..8cedd8d 100644 --- a/action.yml +++ b/action.yml @@ -31,8 +31,8 @@ inputs: default: "false" action_version: description: Version of the action container to run - required: true - default: "latest" + deprecationMessage: No longer used. github.action_ref replaces the need for this. Will be removed in a future version. + required: false additional_templates: description: Space delimetered list of additional Lorax templates to include required: false @@ -43,7 +43,10 @@ runs: - name: Run docker image shell: bash run: | - docker run --privileged --volume .:/github/workspace/ ghcr.io/jasonn3/build-container-installer:${{ inputs.action_version }} \ + # 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 "${tag}" ]]; then tag=${{ github.action_ref }}; fi + docker run --privileged --volume .:/github/workspace/ ghcr.io/jasonn3/build-container-installer:${tag} \ ARCH=${{ inputs.arch }} \ IMAGE_NAME=${{ inputs.image_name }} \ IMAGE_REPO=${{ inputs.image_repo }} \