From 8bd92f3a84588120c9b1e742236d304a2cc34d7f Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Mon, 14 Apr 2025 16:58:47 +0200 Subject: [PATCH] chore(ci): improve error handling and push only ref --- .SRCINFO | 2 +- .gitea/workflows/sync.yaml | 7 +++++-- PKGBUILD | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 0699468..2f80c48 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = mint-backgrounds pkgdesc = The backgrounds of Linux Mint pkgver = 1.8.0 - pkgrel = 1 + pkgrel = 2 arch = any license = Various depends = mint-backgrounds-helena diff --git a/.gitea/workflows/sync.yaml b/.gitea/workflows/sync.yaml index f56b002..d4ef602 100644 --- a/.gitea/workflows/sync.yaml +++ b/.gitea/workflows/sync.yaml @@ -15,9 +15,11 @@ jobs: - ubuntu-latest steps: - uses: actions/checkout@v4.2.2 + with: + fetch-depth: 0 - name: Configure SSH client run: | - mkdir ~/.ssh + mkdir ~/.ssh || true chmod 0700 ~/.ssh echo "${AUR_SSH_KEY}" | base64 --decode > ~/.ssh/id @@ -30,7 +32,8 @@ jobs: EOF - name: Push run: | - git push ssh://aur@aur.archlinux.org/mint-backgrounds.git + echo "Push git ref ${{ github.ref }}" + git push ssh://aur@aur.archlinux.org/mint-backgrounds.git ${{ github.ref }} - name: Remove SSH client configuration run: | rm -rf ~/.ssh \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD index 3db02e7..5148492 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ pkgname=mint-backgrounds pkgver=1.8.0 -pkgrel=1 +pkgrel=2 pkgdesc="The backgrounds of Linux Mint" license=('Various') arch=('any')