Skip to content

Commit

Permalink
update content in with 'ad-m/github-push-action'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwq committed Feb 2, 2024
1 parent 933d4b5 commit c9b91d2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ jobs:
sed -i -e "s/.*_GitVersion=.*/_GitVersion=`git describe --tags`/g" -- "./build/APKBUILD"
sed -i -e "s/.*_GitCommit=.*/_GitCommit=`git rev-parse HEAD`/g" -- "./build/APKBUILD"
sed -i -e "s/.*_GitBranch=.*/_GitBranch=`git rev-parse --abbrev-ref HEAD`/g" -- "./build/APKBUILD"
echo "*****"
head -n 21 "./build/APKBUILD"
echo "*****"
# echo "*****"
# git diff
# echo "*****"
#
# head -n 21 "./build/APKBUILD"
# mkdir -p ${{ steps.vars.outputs.PKG_STAGING }}
# tar cvzf ${{ steps.vars.outputs.PKG_PATH }} \
# build.info \
Expand All @@ -110,6 +111,17 @@ jobs:
# terminal \
# util
- name: Commit files # transfer the new html files back into the repository
run: |
git config --local user.name "github-actions[bot]"
git commit -a -m "Add changes"
- name: Push changes # push the output folder to your repo
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true

- name: publish release assets
uses: softprops/action-gh-release@master
if: startsWith(github.ref, 'refs/tags/')
Expand Down
6 changes: 3 additions & 3 deletions build/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/ericwq/aprilsh/archive/refs/
apshd.initd"
builddir="$srcdir"/$pkgname-$pkgver

#_GitVersion=0.5.14-5-gd95ff55
#_GitCommit=d95ff55cb86eea8d91a360e9b62924e5813855ba
#_GitBranch=main
#_GitVersion=
#_GitCommit=
#_GitBranch=

export PATH=$PATH:~/go/bin
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
Expand Down

0 comments on commit c9b91d2

Please sign in to comment.