Skip to content

Commit

Permalink
fix: replace inputs to github.event.inputs
Browse files Browse the repository at this point in the history
Signed-off-by: Yukai Huang <[email protected]>
  • Loading branch information
Yukaii committed Oct 30, 2024
1 parent 3921a0c commit eb96932
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/actions/build-steps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build Steps

on:
workflow_call:
inputs:
github.event.inputs:
platform:
required: true
type: string
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit eb96932

Please sign in to comment.