Skip to content

Commit

Permalink
Merge pull request #45 from gapplef/patch-1
Browse files Browse the repository at this point in the history
fix version update action `update-version.yml`
  • Loading branch information
merlijn-sebrechts authored Nov 24, 2023
2 parents 535b4fd + bef26b4 commit 061f124
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Fetch new version number
id: fetch-version
Expand All @@ -30,10 +30,10 @@ jobs:
new_version=${{ steps.fetch-version.outputs.new_version }}
if [[ "$current_version" != "$new_version" ]]; then
echo "Updating Snapcraft.yaml..."
sed -i "s/version: '$current_version'/version: '$new_version'/" Snapcraft.yaml
git add Snapcraft.yaml
git commit -m "Update Snapcraft.yaml to version $new_version"
echo "Updating snapcraft.yaml..."
sed -i "s/version: '$current_version'/version: '$new_version'/" snap/snapcraft.yaml
git add snap/snapcraft.yaml
git commit -m "Update snapcraft.yaml to version $new_version"
git push
else
echo "Versions match. No update needed."
Expand Down

0 comments on commit 061f124

Please sign in to comment.