Skip to content

Commit

Permalink
Fix action.yml
Browse files Browse the repository at this point in the history
The `version-schema` and `rock-version-schema` must be passed
only when defined.
  • Loading branch information
sergio-costas committed Dec 4, 2024
1 parent 51da42f commit 3439c7d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ inputs:
version-schema:
description: 'Version schema of snapping repository'
required: false
default: 'None'
rock-version-schema:
description: 'Version schema of rock repository'
required: false
Expand Down Expand Up @@ -52,7 +51,7 @@ runs:
- name: run updatesnapyaml
id: updatesnapyaml
run: |
./desktop-snaps/updatesnap/updatesnapyaml.py --github-user $GITHUB_USER --github-token $GITHUB_TOKEN --version-schema $VERSION_SCHEMA --rock-version-schema $ROCK_VERSION_SCHEMA ${YAML_PATH:+--yaml-path $YAML_PATH} https://github.com/${{ github.repository }}
./desktop-snaps/updatesnap/updatesnapyaml.py --github-user $GITHUB_USER --github-token $GITHUB_TOKEN ${VERSION_SCHEMA:+--version-schema $VERSION_SCHEMA} ${ROCK_VERSION_SCHEMA:+--rock-version-schema $ROCK_VERSION_SCHEMA} ${YAML_PATH:+--yaml-path $YAML_PATH} https://github.com/${{ github.repository }}
# Make sure to put the updated snapcraft.yaml file in the right location if it lives in a snap directory
if [ -f version_file ]; then
echo "IS_VERSION_CHANGE=true" >> $GITHUB_ENV
Expand Down

0 comments on commit 3439c7d

Please sign in to comment.