Skip to content

Commit e6f6394

Browse files
committed
feat: export platforms
1 parent 929b30f commit e6f6394

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

action.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 'Docker CGO Actions'
22
description: 'Build golang program with CGO_ENABLED=1 for docker Image'
33
inputs:
4-
platforms: # id of input
4+
platforms: # id of input
55
description: 'The platforms to build for'
66
required: false
77
default: 'linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/riscv64,linux/s390x'
@@ -26,8 +26,13 @@ inputs:
2626
required: false
2727
default: '$repo'
2828

29+
outputs:
30+
platforms:
31+
description: 'The platforms built for'
32+
value: ${{ inputs.platforms }}
33+
2934
runs:
30-
using: "composite"
35+
using: 'composite'
3136
steps:
3237
- name: Set GitHub Path
3338
run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
@@ -60,4 +65,3 @@ runs:
6065
env:
6166
OUTPUT: ${{ inputs.output }}
6267
REPOSITORY: ${{ github.repository }}
63-

0 commit comments

Comments
 (0)