Skip to content

Commit f313444

Browse files
committed
Add job to make input env var
1 parent 58f7474 commit f313444

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

actions/push-to-gar-docker-multi-arch/action.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,26 @@ description: Composite action to push to Google Artifact Registry
33
on:
44
workflow_call:
55
inputs:
6-
platform_string:
6+
platforms:
77
description: desc
88
required: true
99
type: string
1010

11+
env:
12+
platform_env: ${{ inputs.platforms }}
13+
1114
jobs:
15+
expose-env-var:
16+
runs-on: ubuntu-latest
17+
outputs:
18+
platforms: ${{ env.platform_env }}
19+
steps:
20+
- run: echo "exposing env var"
21+
1222
resolve-platforms:
23+
needs: [expose-env-var]
1324
runs-on: ubuntu-latest
1425
steps:
1526
- uses: ./actions/resolve-architectures
1627
with:
17-
platforms: "${{ github.event.inputs.platform_string }}"
28+
platforms: ${{ needs.expose-env-var.outputs.platforms }}

0 commit comments

Comments
 (0)