Skip to content

Commit e1f099b

Browse files
committed
fix: remove duplicate build-steps/action.yml
Signed-off-by: Yukai Huang <[email protected]>
1 parent e9f97a7 commit e1f099b

File tree

3 files changed

+9
-83
lines changed

3 files changed

+9
-83
lines changed

.github/actions/build-steps/action.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

.github/workflows/build-steps.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
platform:
77
required: true
88
type: string
9+
platform_pair:
10+
required: true
11+
type: string
912
registry_image:
1013
required: true
1114
type: string
@@ -15,15 +18,14 @@ on:
1518
buildpack:
1619
required: true
1720
type: string
21+
runs_on:
22+
required: true
23+
type: string
1824

1925
jobs:
2026
build:
27+
runs-on: ${{ inputs.runs_on }}
2128
steps:
22-
-
23-
name: Prepare Platform Environment
24-
run: |
25-
platform=${{ inputs.platform }}
26-
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
2729
-
2830
name: Checkout
2931
uses: actions/checkout@v4
@@ -68,7 +70,7 @@ jobs:
6870
name: Upload digest
6971
uses: actions/upload-artifact@v4
7072
with:
71-
name: digests-${{ env.PLATFORM_PAIR }}
73+
name: digests-${{ inputs.platform_pair }}
7274
path: /tmp/digests/*
7375
if-no-files-found: error
7476
retention-days: 1

.github/workflows/push-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
default: 'hackmdio/buildpack:16.20.2-35fe7e39'
1616
registry_image:
1717
description: 'image name'
18-
required: false
18+
required: true
1919
default: 'hackmdio/hackmd'
2020

2121
jobs:

0 commit comments

Comments
 (0)