You've already forked .autoupdate
feat: added pman-helper package
This commit is contained in:
34
.gitea/workflows/pman-helper.yaml
Normal file
34
.gitea/workflows/pman-helper.yaml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
---
|
||||||
|
name: Update pman-helper Package
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- run: |
|
||||||
|
apt-get --quiet update && apt-get --quiet --assume-yes install makepkg
|
||||||
|
git config --global user.name "${GIT_NAME}"
|
||||||
|
git config --global user.email "${GIT_EMAIL}"
|
||||||
|
git config --global credential.helper store
|
||||||
|
echo "https://${GIT_EMAIL//@/%40}:${GIT_TOKEN}@${GIT_HOST}" > ~/.git-credentials
|
||||||
|
git clone --depth 1 https://${GIT_HOST}/aur/pman-helper
|
||||||
|
cd pman-helper
|
||||||
|
source PKGBUILD
|
||||||
|
./push.sh $(curl -L -H "Accept: application/json" \
|
||||||
|
https://git.bjphoster.com/api/v1/repos/${_srcmntr}/${_srcname}/repo/tags | jq -r ".[].name" | sort -V | tail -n 1)
|
||||||
|
env:
|
||||||
|
GIT_NAME: ${{ vars.GIT_NAME }}
|
||||||
|
GIT_EMAIL: ${{ vars.GIT_EMAIL }}
|
||||||
|
GIT_HOST: ${{ vars.GIT_HOST }}
|
||||||
|
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
|
||||||
Reference in New Issue
Block a user