chore(ci): improve error handling and push only ref
This commit is contained in:
parent
9280fb3553
commit
79fa95b166
@ -17,7 +17,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4.2.2
|
- uses: actions/checkout@v4.2.2
|
||||||
- name: Configure SSH client
|
- name: Configure SSH client
|
||||||
run: |
|
run: |
|
||||||
mkdir ~/.ssh
|
mkdir ~/.ssh || true
|
||||||
chmod 0700 ~/.ssh
|
chmod 0700 ~/.ssh
|
||||||
|
|
||||||
echo "${AUR_SSH_KEY}" | base64 --decode > ~/.ssh/id
|
echo "${AUR_SSH_KEY}" | base64 --decode > ~/.ssh/id
|
||||||
@ -30,7 +30,7 @@ jobs:
|
|||||||
EOF
|
EOF
|
||||||
- name: Push
|
- name: Push
|
||||||
run: |
|
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
|
- name: Remove SSH client configuration
|
||||||
run: |
|
run: |
|
||||||
rm -rf ~/.ssh
|
rm -rf ~/.ssh
|
Loading…
x
Reference in New Issue
Block a user