--- name: Update Package Version concurrency: group: update-package-version cancel-in-progress: false 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: | 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.bjphoster.com" > ~/.git-credentials source PKGBUILD ./push.sh $(curl -L -H "Accept: application/vnd.github+json" https://api.github.com/repos/${_srcmntr}/${_srcname}/releases/latest | jq ".tag_name" | sed 's|"||g;s|app-v||') env: GIT_NAME: ${{ secrets.GIT_NAME }} GIT_EMAIL: ${{ secrets.GIT_EMAIL }} GIT_TOKEN: ${{ secrets.GIT_TOKEN }}