Skip to content

Commit 7d245d9

Browse files
committed
fix: pass inputs as env variables
1 parent 75a31d2 commit 7d245d9

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/container-ci.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ jobs:
147147
path: /tmp/.buildx-cache/linux/amd64
148148
- name: Adjust bleeding edge image
149149
if: inputs.variant == 'bleeding'
150-
run: .github/bin/bleeding ${{needs.revisions.outputs.weblate_sha}} ${{needs.revisions.outputs.weblate_date}}
150+
run: .github/bin/bleeding "$WEBLATE_SHA" "$WEBLATE_DATE"
151+
env:
152+
WEBLATE_SHA: ${{ needs.revisions.outputs.weblate_sha }}
153+
WEBLATE_DATE: ${{ needs.revisions.outputs.weblate_date }}
151154
- name: Build the Docker image
152155
run: .github/bin/docker-build load
153156
- name: List Docker images
@@ -194,7 +197,10 @@ jobs:
194197
path: /tmp/.buildx-cache/linux/amd64
195198
- name: Adjust bleeding edge image
196199
if: inputs.variant == 'bleeding'
197-
run: .github/bin/bleeding ${{needs.revisions.outputs.weblate_sha}} ${{needs.revisions.outputs.weblate_date}}
200+
run: .github/bin/bleeding "$WEBLATE_SHA" "$WEBLATE_DATE"
201+
env:
202+
WEBLATE_SHA: ${{ needs.revisions.outputs.weblate_sha }}
203+
WEBLATE_DATE: ${{ needs.revisions.outputs.weblate_date }}
198204
- name: Build the Docker image
199205
run: .github/bin/docker-build load
200206
- name: List Docker images
@@ -253,7 +259,10 @@ jobs:
253259
path: /tmp/.buildx-cache/linux/arm64
254260
- name: Adjust bleeding edge image
255261
if: inputs.variant == 'bleeding'
256-
run: .github/bin/bleeding ${{needs.revisions.outputs.weblate_sha}} ${{needs.revisions.outputs.weblate_date}}
262+
run: .github/bin/bleeding "$WEBLATE_SHA" "$WEBLATE_DATE"
263+
env:
264+
WEBLATE_SHA: ${{ needs.revisions.outputs.weblate_sha }}
265+
WEBLATE_DATE: ${{ needs.revisions.outputs.weblate_date }}
257266
- name: Configure Docker build
258267
run: .github/bin/get-buildx-args
259268
- name: Merge the Docker images
@@ -321,7 +330,10 @@ jobs:
321330
run: echo "${{ secrets.DOCKERHUB_ACCESS_TOKEN }}" | docker login --username "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
322331
- name: Adjust bleeding edge image
323332
if: inputs.variant == 'bleeding'
324-
run: .github/bin/bleeding ${{needs.revisions.outputs.weblate_sha}} ${{needs.revisions.outputs.weblate_date}}
333+
run: .github/bin/bleeding "$WEBLATE_SHA" "$WEBLATE_DATE"
334+
env:
335+
WEBLATE_SHA: ${{ needs.revisions.outputs.weblate_sha }}
336+
WEBLATE_DATE: ${{ needs.revisions.outputs.weblate_date }}
325337
- name: Configure Docker build
326338
run: .github/bin/get-buildx-args "publish-$WEBLATE_VARIANT"
327339
env:
@@ -377,7 +389,10 @@ jobs:
377389
password: ${{ secrets.GITHUB_TOKEN }}
378390
- name: Adjust bleeding edge image
379391
if: inputs.variant == 'bleeding'
380-
run: .github/bin/bleeding ${{needs.revisions.outputs.weblate_sha}} ${{needs.revisions.outputs.weblate_date}}
392+
run: .github/bin/bleeding "$WEBLATE_SHA" "$WEBLATE_DATE"
393+
env:
394+
WEBLATE_SHA: ${{ needs.revisions.outputs.weblate_sha }}
395+
WEBLATE_DATE: ${{ needs.revisions.outputs.weblate_date }}
381396
- name: Configure Docker build
382397
run: .github/bin/get-buildx-args "publish-$WEBLATE_VARIANT"
383398
env:

0 commit comments

Comments
 (0)