From 59e8f2835c931d4ad5a8bfa084aaf28af76906dd Mon Sep 17 00:00:00 2001 From: Rudra Pratap Singh Date: Tue, 2 Jul 2024 19:41:09 +0530 Subject: [PATCH] Add `rock-version-schema` in `action.yml` (#666) --- action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 64aa6dc..b065824 100644 --- a/action.yml +++ b/action.yml @@ -16,6 +16,10 @@ inputs: description: 'Version schema of snapping repository' required: false default: 'None' + rock-version-schema: + description: 'Version schema of rock repository' + required: false + default: 'None' # Outputs generated by running this action. outputs: @@ -45,7 +49,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 https://github.com/${{ github.repository }} + ./desktop-snaps/updatesnap/updatesnapyaml.py --github-user $GITHUB_USER --github-token $GITHUB_TOKEN --version-schema $VERSION_SCHEMA --rock-version-schema $ROCK_VERSION_SCHEMA 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 @@ -65,6 +69,7 @@ runs: GITHUB_USER: ubuntu GITHUB_TOKEN: ${{ inputs.token }} VERSION_SCHEMA: ${{ inputs.version-schema }} + ROCK_VERSION_SCHEMA: ${{ inputs.rock-version-schema }} shell: bash # Step to remove the desktop-snaps folder so that when we commit changes in another repo, the desktop-snaps folder is not committed there.