Skip to content

Commit

Permalink
Use boolean type input
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas committed Apr 30, 2024
1 parent eb8883c commit 7056e60
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
update:
description: "Update the repository with the generated data"
required: false
default: "false"
type: "boolean"
default: false

jobs:
generate:
Expand Down Expand Up @@ -83,13 +84,13 @@ jobs:

- name: Store the game version
id: gameVersionJSON
if: ${{ github.event.inputs.update == 'true' }}
if: ${{ github.event.inputs.update }}
working-directory: app/data
run: json=`cat ./version.json`
echo "json=$json" >> $GITHUB_OUTPUT

- name: Add the generated file as an artifact
if: ${{ github.event.inputs.update == 'true' }}
if: ${{ github.event.inputs.update }}
working-directory: app/data
run: $content=`cat ./version.json`

Expand Down

0 comments on commit 7056e60

Please sign in to comment.