From 7188d75a28112f7282b446bd433baacd7a6e597e Mon Sep 17 00:00:00 2001 From: Dmitry Porunov Date: Wed, 24 Jun 2020 20:54:28 +0300 Subject: [PATCH] Just to see what happens --- .gitlab-ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bafaa73..7e11f1f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,18 +9,18 @@ Update-AUR: script: - cd ./pkg/aur - - _version=$(echo $CI_COMMIT_TAG) - - echo "$CI_COMMIT_TAG" - - echo "Pushing'v$_version'" + - VERSION=$(echo $CI_COMMIT_REF_NAME) + - echo "$CI_COMMIT_REF_NAME" + - echo "Pushing'v$VERSION'" - - sourceURL=https://gitlab.com/ykkzde/posy-cursors/-/archive/v$_version/cursorsPosy-v$_version.tar.gz?path=themes + - sourceURL=https://gitlab.com/ykkzde/posy-cursors/-/archive/v$VERSION/cursorsPosy-v$VERSION.tar.gz?path=themes - 'echo "Source: $sourceURL"' - echo "Checking sha256sum checksums" - 'sourceSHA=$(curl -sSL "$sourceURL" | sha256sum | cut -d" " -f1)' # Update PKGBUILD version, source URL and sha256sum - echo "Updating PKGBUILDS with release information..." - - sed "s/^pkgver=.*\$/pkgver=$_version/" -i posy-cursors/PKGBUILD + - sed "s/^pkgver=.*\$/pkgver=$VERSION/" -i posy-cursors/PKGBUILD - sed "s/^source=(\"\(.*\)::.*\").*\$/source=(\"\1::$(echo $sourceURL | sed 's/\//\\\//g')\")/" -i posy-cursors/PKGBUILD - sed "s/^sha256sums=.*\$/sha256sums=('$sourceSHA')/" -i posy-cursors/PKGBUILD @@ -53,6 +53,6 @@ Update-AUR: - cd aur-posy-cursors - cp ../posy-cursors/{PKGBUILD,.SRCINFO} ./ - git add PKGBUILD .SRCINFO - - git commit -m "Release v$_version" + - git commit -m "Release v$VERSION" - git push - cd ..