Skip to content

Commit 7ba867f

Browse files
committed
Add more logs
1 parent 8db3edd commit 7ba867f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

entrypoint.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,20 @@ commit_email=$INPUT_COMMIT_EMAIL
99
ssh_private_key=$INPUT_SSH_PRIVATE_KEY
1010
commit_message=$INPUT_COMMIT_MESSAGE
1111

12+
echo 'Adding aur.archlinux.org to known hosts...'
1213
ssh-keyscan -t ed25519 aur.archlinux.org >> ~/.ssh/known_hosts
1314

15+
echo 'Importing private key...'
1416
echo "$ssh_private_key" > ~/.ssh/aur
15-
1617
chmod 600 ~/.ssh/aur*
1718

19+
echo 'Configuring git...'
1820
git config --global user.name "$commit_username"
1921
git config --global user.email "$commit_email"
2022

2123
repo_url="ssh://[email protected]/${pkgname}.git"
2224

25+
echo "Cloning $repo_url into /local-repo..."
2326
git clone "$repo_url" /local-repo
2427

2528
echo "Copying PKGBUILD from $pkgbuild to /local-repo"
@@ -28,6 +31,7 @@ cp -v "$pkgbuild" /local-repo/PKGBUILD
2831
echo "Updating .SRCINFO"
2932
makepkg --printsrcinfo > /local-repo/.SRCINFO
3033

34+
echo "Publishing..."
3135
git add -fv PKGBUILD .SRCINFO
3236
git commit --allow-empty -m "$commit_message"
3337
git push -fv

0 commit comments

Comments
 (0)