diff --git a/.scripts/publish_github_release.sh b/.scripts/publish_github_release.sh index 23c4f45c..0267c2a6 100755 --- a/.scripts/publish_github_release.sh +++ b/.scripts/publish_github_release.sh @@ -2,7 +2,7 @@ REPO="$1" TAG="$2" -AUTH_TOKEN="$3" +AUTH_TOKEN="$(<'/home/buildbot/.github_token')" PRERELEASE=false # RELEASEFILES=(debs/python-probe_basic_*.deb dist/probe_basic-*.tar.gz) @@ -27,7 +27,8 @@ declare -a COMMIT_TYPES=( "REV:Reverted commits" ) -LAST_RELEASE=$( git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1` ) +# shellcheck disable=SC2046 +LAST_RELEASE=$( git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)" ) CREATE_CHANGELOG() { @@ -138,16 +139,16 @@ JSON=$(cat <