Skip to content

Commit

Permalink
Merge pull request #120 from soumyaDghosh/master
Browse files Browse the repository at this point in the history
[workflow]: fix the source-url
  • Loading branch information
jnsgruk authored Dec 15, 2023
2 parents 6dc53de + acd930c commit 5bf00ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .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="$(echo "$source_url" | rev | cut -d '/' -f2 | rev && echo "$codename")"
sed -i 's/^\(source: \).*$/\1'"\"$source_url\""'/' snap/snapcraft.yaml
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 5bf00ed

Please sign in to comment.