diff options
| author | yalh76 <yalh@yahoo.com> | 2022-09-20 01:57:06 +0200 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2022-09-20 01:57:06 +0200 |
| commit | ff82206caa65a4e7142fe14a55853c96578d187e (patch) | |
| tree | ee21f8da60f44e8b96eb8b1f8075c6a9baa37b1f /.github/workflows | |
| parent | efa2d628920edce255ff406b28a97b1dd20e3d74 (diff) | |
| download | mastodon_ynh-ff82206caa65a4e7142fe14a55853c96578d187e.tar.gz mastodon_ynh-ff82206caa65a4e7142fe14a55853c96578d187e.tar.bz2 mastodon_ynh-ff82206caa65a4e7142fe14a55853c96578d187e.zip | |
Apply last example_ynh
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/updater.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index 2c00a9d..4e30c38 100644 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -24,7 +24,7 @@ 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 @@ -36,12 +36,12 @@ 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 #================================================= |
