ci: run updates thrice a day, use PAT

This commit is contained in:
goat 2023-01-12 23:04:41 +01:00 committed by GitHub
parent 64d29fd4d3
commit 87b6c6b982
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
name: Check for FFXIVCS changes name: Check for FFXIVCS changes
on: on:
schedule: schedule:
- cron: "0 0 */1 * *" - cron: "0 0,12,18 */1 * *"
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@ -22,7 +22,7 @@ jobs:
with: with:
submodules: true submodules: true
ref: ${{ matrix.branches }} ref: ${{ matrix.branches }}
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.UPDATE_PAT }}
- name: Create update branch - name: Create update branch
run: git checkout -b csupdate/${{ matrix.branches }} run: git checkout -b csupdate/${{ matrix.branches }}
- name: Initialize mandatory git config - name: Initialize mandatory git config
@ -42,5 +42,5 @@ jobs:
git push origin csupdate-${{ matrix.branches }} git push origin csupdate-${{ matrix.branches }}
- name: Create PR - name: Create PR
run: | run: |
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token echo ${{ secrets.UPDATE_PAT }} | gh auth login --with-token
gh pr create --head csupdate-${{ matrix.branches }} --title "[${{ matrix.branches }}] Update ClientStructs" --body "" --base ${{ matrix.branches }} gh pr create --head csupdate-${{ matrix.branches }} --title "[${{ matrix.branches }}] Update ClientStructs" --body "" --base ${{ matrix.branches }}