Skip to content

ci: 👷 use GitHub App token for syncing files #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/sync-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,25 @@ jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ vars.SYNC_FILES_APP_ID }}
private-key: ${{ secrets.SYNC_FILES_TOKEN }}

- name: Checkout Repository
uses: actions/checkout@main
uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}

- name: Run GitHub File Sync
uses: BetaHuhn/repo-file-sync-action@v1
with:
GH_PAT: ${{ secrets.SYNC_PAT }}
GH_PAT: ${{ steps.app-token.outputs.token }}
ASSIGNEES: lwjohnst86
IS_FINE_GRAINED: true
GIT_USERNAME: lwjohnst86
GIT_EMAIL: lwjohnst@gmail.com
GIT_USERNAME: github-actions[bot]
GIT_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
COMMIT_PREFIX: "chore(sync): :hammer: "
BRANCH_PREFIX: chore
TEAM_REVIEWERS: admin