From ac5dddfe59052c962410d1db1f6b0986b859a4ab Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Wed, 30 Oct 2024 19:40:39 +0800 Subject: [PATCH] fix: replace inputs to github.event.inputs --- .github/actions/build-steps/action.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/actions/build-steps/action.yml b/.github/actions/build-steps/action.yml index 737370670..5f48338cd 100644 --- a/.github/actions/build-steps/action.yml +++ b/.github/actions/build-steps/action.yml @@ -2,7 +2,7 @@ name: Build Steps on: workflow_call: - inputs: + github.event.inputs: platform: required: true type: string @@ -18,12 +18,12 @@ on: jobs: build: - runs-on: ${{ inputs.platform == 'linux/arm64' && 'macos-latest' || 'ubuntu-latest' }} + runs-on: ${{ github.event.inputs.platform == 'linux/arm64' && 'macos-latest' || 'ubuntu-latest' }} steps: - name: Prepare Platform Environment run: | - echo "PLATFORM_PAIR=${{ inputs.platform//\//- }}" >> $GITHUB_ENV + echo "PLATFORM_PAIR=${{ github.event.inputs.platform//\//- }}" >> $GITHUB_ENV - name: Checkout uses: actions/checkout@v4 @@ -32,7 +32,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ${{ inputs.registry_image }} + images: ${{ github.event.inputs.registry_image }} - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -52,12 +52,12 @@ jobs: with: context: . file: ./deployments/Dockerfile - platforms: ${{ inputs.platform }} + platforms: ${{ github.event.inputs.platform }} labels: ${{ steps.meta.outputs.labels }} - outputs: type=image,name=${{ inputs.registry_image }},push-by-digest=true,name-canonical=true,push=true + outputs: type=image,name=${{ github.event.inputs.registry_image }},push-by-digest=true,name-canonical=true,push=true build-args: | - RUNTIME=${{ inputs.runtime }} - BUILDPACK=${{ inputs.buildpack }} + RUNTIME=${{ github.event.inputs.runtime }} + BUILDPACK=${{ github.event.inputs.buildpack }} - name: Export digest run: |