Skip to content

Commit 306a61a

Browse files
committed
Attempt to use boolean inputs
1 parent 4608cb1 commit 306a61a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
needs: [ changes, container ]
6161
uses: ./.github/workflows/outputs.yml
6262
with:
63-
with_pr_container: ${{ needs.container.result == "success" }}
63+
with_pr_container: ${{ needs.container.result == 'success' }}
6464

6565
style:
6666
if: ${{ needs.changes.outputs.style == 'true' }}

.github/workflows/outputs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
inputs:
55
with_pr_container:
66
required: true
7-
type: string
7+
type: boolean
88

99
jobs:
1010
re-generate:
@@ -44,14 +44,14 @@ jobs:
4444
repository: ${{ github.event.pull_request.head.repo.full_name }}
4545

4646
- name: Download container from artifact if PR
47-
if: github.event_name == 'pull_request' && inputs.with_pr_container == 'true'
47+
if: github.event_name == 'pull_request' && inputs.with_pr_container
4848
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
4949
with:
5050
name: tutorial-container
5151
path: /tmp
5252

5353
- name: Import container from PR artifact
54-
if: github.event_name == 'pull_request' && inputs.with_pr_container == 'true'
54+
if: github.event_name == 'pull_request' && inputs.with_pr_container
5555
run: |
5656
docker load --input /tmp/tutorial-container.tar
5757
docker image ls -a

0 commit comments

Comments
 (0)