Skip to content

Commit

Permalink
Merge pull request #48 from WXYC/bugfix/workflow-type-error
Browse files Browse the repository at this point in the history
I understand now... I think
  • Loading branch information
AyBruno authored Feb 21, 2025
2 parents f4d4593 + bd0733a commit 900e91d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
trigger-build-and-deploy:
uses: ./.github/workflows/deploy-base.yml
with:
dry-run: 'false'
dry-run: false
7 changes: 4 additions & 3 deletions .github/workflows/deploy-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ on:
inputs:
dry_run:
required: false
default: 'true'
type: boolean
default: true

jobs:
dry-run:
if: github.event.inputs.dry_run == 'true'
if: ${{ inputs.dry_run }}
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -79,7 +80,7 @@ jobs:
docker ps || exit 1
build-and-deploy:
if: github.event.inputs.dry_run != 'true'
if: ${{ !inputs.dry_run }}
runs-on: ubuntu-latest

steps:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/deploy-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ on:
dry_run:
description: 'Perform a dry run'
required: false
default: 'true'
type: boolean
default: true

jobs:
trigger-build-and-deploy:
uses: ./.github/workflows/deploy-base.yml
with:
dry-run: github.events.inputs.dry_run
dry-run: ${{ inputs.dry_run }}

0 comments on commit 900e91d

Please sign in to comment.