Skip to content

Commit

Permalink
GIT_WORKFLOW_PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Nov 8, 2024
1 parent 3cb434b commit 02ae53b
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/cron-latest-commits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ jobs:
# From verify deployments workflow
- uses: actions/checkout@v4

- name: Check for PAT
run: |
if [ -z "${{ secrets.GIT_WORKFLOW_PAT }}" ]; then
echo "Please set the GIT_WORKFLOW_PAT secret to support PR workflow runs on generate"
exit 1
fi
- name: grab latest commits
run: make latest-commits

Expand All @@ -35,6 +42,10 @@ jobs:
commit-message: "chore: sync latest"
delete-branch: true
signoff: false
# https://github.com/orgs/community/discussions/55906#discussioncomment-5946239
# https://github.com/settings/personal-access-tokens/new
# To verify the PR, we must set a PAT token in the secrets
token: ${{ secrets.GIT_WORKFLOW_PAT }}
# https://github.com/interchainio/dev-portal-docsite/issues/labels
labels: |
automated pr
Expand All @@ -43,16 +54,3 @@ jobs:
reviewers: reecepbcups
body: |
Syncing the latest file commits from upstream.
# TODO: this is a duplicate from verify-deployment, in the future migrate to reuseable action w/ workflow_call inputs
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache-dependency-path: package-lock.json

- name: pull docs from current latest
run: make sync-docs

- name: build-docs w/o errors
run: make build-docs

0 comments on commit 02ae53b

Please sign in to comment.