Update push-aur.sh

This commit is contained in:
Oskar 2023-01-20 18:01:00 +01:00 committed by GitHub
parent c09cf21d13
commit 25d28def04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 8 deletions

View File

@ -58,22 +58,22 @@ push-aur() {
then then
echo "==> ${pkgname}" echo "==> ${pkgname}"
echo '::group::Cloning AUR package into /tmp/local-repo' echo '::group::Cloning AUR package into aur-repo'
git clone -v "ssh://aur@aur.archlinux.org/${pkgname}.git" /tmp/local-repo git clone -v "ssh://aur@aur.archlinux.org/${pkgname}.git" aur-repo
echo '::endgroup::' echo '::endgroup::'
echo '::group::Copying files into /tmp/local-repo' echo '::group::Copying files into aur-repo'
cp -r "${pkgdir}"/* /tmp/local-repo/ cp -r "${pkgdir}"/* aur-repo
rm -rf /tmp/local-repo/built.conf rm -rf aur-repo/built.conf
echo '::endgroup::' echo '::endgroup::'
echo '::group::Generating .SRCINFO' echo '::group::Generating .SRCINFO'
cd /tmp/local-repo cd aur-repo
makepkg --printsrcinfo >.SRCINFO makepkg --printsrcinfo >.SRCINFO
echo '::endgroup::' echo '::endgroup::'
echo '::group::Committing files to the repository' echo '::group::Committing files to the repository'
git add /tmp/local-repo git add .
git commit -m "sync with built-aur" git commit -m "sync with built-aur"
echo '::endgroup::' echo '::endgroup::'
@ -82,7 +82,8 @@ push-aur() {
echo '::endgroup::' echo '::endgroup::'
echo '::group::Cleanup' echo '::group::Cleanup'
rm -rf /tmp/local-repo/ cd ..
rm -rf aur-repo
echo '::endgroup::' echo '::endgroup::'
return 0 return 0
fi fi