Skip to content

Commit

Permalink
Merge pull request #121 from soumyaDghosh/master
Browse files Browse the repository at this point in the history
[workflow]: remove the space and add `-` in the version
  • Loading branch information
jnsgruk authored Dec 15, 2023
2 parents dd2e2c0 + ba63912 commit 2f97579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/sync-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
update-script: |
source_url="$(curl -sL https://developer.android.com/studio/index.html | grep -Eo '"((https)?://.*linux.tar.gz)"' | tr -d '"')"
codename="$(curl -sL https://developer.android.com/studio/index.html | grep -Po 'Download Android Studio (?!today)[A-Za-z0-9]+' | head -n1 | cut -d ' ' -f4)"
version="$(basename "$source_url" .tar.gz | grep -oP '\d+\.\d+\.\d+\.\d+') $codename"
version="$(basename "$source_url" .tar.gz | grep -oP '\d+\.\d+\.\d+\.\d+')-$codename"
sed -i "s|source: .*$|source: $source_url|g" snap/snapcraft.yaml
sed -i 's/^\(version: \).*$/\1'"\"$version\""'/' snap/snapcraft.yaml

0 comments on commit 2f97579

Please sign in to comment.