diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 31ece00c..ba768e4a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 \ @@ -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/') diff --git a/build/APKBUILD b/build/APKBUILD index 2b198e21..9879bddb 100644 --- a/build/APKBUILD +++ b/build/APKBUILD @@ -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"}"