diff options
| author | yalh76 <yalh@yahoo.com> | 2022-09-21 19:44:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-21 19:44:56 +0200 |
| commit | cd1f90297bcc490b5e22c93d45898104a412b483 (patch) | |
| tree | 226233c095b8708d353737031d1461bcd0a41042 /.github/workflows | |
| parent | efa2d628920edce255ff406b28a97b1dd20e3d74 (diff) | |
| parent | de37be387cebca5b3c470e1b93692717c9ca7c7b (diff) | |
| download | mastodon_ynh-cd1f90297bcc490b5e22c93d45898104a412b483.tar.gz mastodon_ynh-cd1f90297bcc490b5e22c93d45898104a412b483.tar.bz2 mastodon_ynh-cd1f90297bcc490b5e22c93d45898104a412b483.zip | |
Merge pull request #339 from YunoHost-Apps/testing
Fix
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/updater.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index 2c00a9d..1499a0f 100644 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -24,24 +24,25 @@ assets="https://github.com/tootsuite/mastodon/archive/refs/tags/$version.tar.gz" # Sometimes the release name starts with a "v", so let's filter it out. # You may need more tweaks here if the upstream repository has different naming conventions. if [[ ${version:0:1} == "v" || ${version:0:1} == "V" ]]; then - version=${version:1} + version=${version:1} fi # Setting up the environment variables echo "Current version: $current_version" echo "Latest release from upstream: $version" echo "VERSION=$version" >> $GITHUB_ENV +echo "REPO=$repo" >> $GITHUB_ENV # For the time being, let's assume the script will fail echo "PROCEED=false" >> $GITHUB_ENV # Proceed only if the retrieved version is greater than the current one if ! dpkg --compare-versions "$current_version" "lt" "$version" ; then - echo "::warning ::No new version available" - exit 0 + echo "::warning ::No new version available" + exit 0 # Proceed only if a PR for this new version does not already exist elif git ls-remote -q --exit-code --heads https://github.com/$GITHUB_REPOSITORY.git ci-auto-update-v$version ; then - echo "::warning ::A branch already exists for this update" - exit 0 + echo "::warning ::A branch already exists for this update" + exit 0 fi #================================================= @@ -81,6 +82,7 @@ SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=$extension SOURCE_IN_SUBDIR=true SOURCE_FILENAME= +SOURCE_EXTRACT=true EOT echo "... conf/$src.src updated" |
