Skip to content

Commit 9d7ccfd

Browse files
committed
chore: fix aur push - reset hard to match remote
1 parent da6b54e commit 9d7ccfd

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ jobs:
186186
cd /home/builduser
187187
if git clone ssh://aur@aur.archlinux.org/krosshair.git aur-push 2>&1; then
188188
echo "Cloned existing AUR repo"
189+
cd aur-push
190+
git fetch origin
191+
git reset --hard origin/master
192+
cd ..
189193
else
190194
echo "Creating new AUR repo"
191195
mkdir -p aur-push
@@ -195,6 +199,7 @@ jobs:
195199
cd ..
196200
fi
197201
202+
rm -rf aur-push/*
198203
cp aur/PKGBUILD aur-push/
199204
cp aur/krosshair.install aur-push/
200205

0 commit comments

Comments
 (0)