From 79fa95b16666f76f1f3a45854811732db6f6a51f Mon Sep 17 00:00:00 2001 From: Markus Pesch <markus.pesch@cryptic.systems> Date: Mon, 14 Apr 2025 16:58:47 +0200 Subject: [PATCH] chore(ci): improve error handling and push only ref --- .gitea/workflows/sync.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/sync.yaml b/.gitea/workflows/sync.yaml index f56b002..b9a6ec9 100644 --- a/.gitea/workflows/sync.yaml +++ b/.gitea/workflows/sync.yaml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Configure SSH client run: | - mkdir ~/.ssh + mkdir ~/.ssh || true chmod 0700 ~/.ssh echo "${AUR_SSH_KEY}" | base64 --decode > ~/.ssh/id @@ -30,7 +30,7 @@ jobs: EOF - name: Push run: | - git push ssh://aur@aur.archlinux.org/mint-backgrounds.git + 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