fix pkgver/pkgrel variables
This commit is contained in:
parent
70b94c15c5
commit
6df7856873
1 changed files with 3 additions and 3 deletions
|
@ -50,8 +50,8 @@ runs:
|
||||||
pkgbase='${{inputs.pkgbase}}'
|
pkgbase='${{inputs.pkgbase}}'
|
||||||
[ -n "$pkgbase" ] || pkgbase="$( (. PKGBUILD && printf '%s' "$pkgbase") )"
|
[ -n "$pkgbase" ] || pkgbase="$( (. PKGBUILD && printf '%s' "$pkgbase") )"
|
||||||
[ -n "$pkgbase" ] || pkgbase="$( (. PKGBUILD && printf '%s' "$pkgname") )"
|
[ -n "$pkgbase" ] || pkgbase="$( (. PKGBUILD && printf '%s' "$pkgname") )"
|
||||||
[ -n "$pkgver" ] || pkgver="$( (. PKGBUILD && printf '%s' "$pkgver") )"
|
pkgver="$( (. PKGBUILD && printf '%s' "$pkgver") )"
|
||||||
[ -n "$pkgrel" ] || pkgver="$( (. PKGBUILD && printf '%s' "$pkgrel") )"
|
pkgrel="$( (. PKGBUILD && printf '%s' "$pkgrel") )"
|
||||||
|
|
||||||
[ -n "$pkgbase" ] || \
|
[ -n "$pkgbase" ] || \
|
||||||
( echo "Failed to determine pkgbase"; exit 1 )
|
( echo "Failed to determine pkgbase"; exit 1 )
|
||||||
|
@ -66,7 +66,7 @@ runs:
|
||||||
git add .
|
git add .
|
||||||
git config user.name "${{github.event.head_commit.committer.name}}"
|
git config user.name "${{github.event.head_commit.committer.name}}"
|
||||||
git config user.email "${{github.event.head_commit.committer.email}}"
|
git config user.email "${{github.event.head_commit.committer.email}}"
|
||||||
git commit -m "$pkgbase $pkgver-$pkgrel (${{github.event.head_commit.url}})" \
|
git commit -m "$(echo -e "$pkgbase $pkgver-$pkgrel\n${{github.event.head_commit.url}}")" \
|
||||||
--author "${{github.event.head_commit.author.name}} <${{github.event.head_commit.author.email}}>"
|
--author "${{github.event.head_commit.author.name}} <${{github.event.head_commit.author.email}}>"
|
||||||
git show HEAD
|
git show HEAD
|
||||||
echo git push aur "${{github.ref_name}}:master"
|
echo git push aur "${{github.ref_name}}:master"
|
||||||
|
|
Loading…
Add table
Reference in a new issue