Merge pull request 'fix-repo-sync' (#2834) from fix-repo-sync into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2834
This commit is contained in:
Mic92
2025-02-08 14:59:52 +00:00
2 changed files with 6 additions and 3 deletions

View File

@@ -3,10 +3,8 @@ on:
schedule: schedule:
- cron: "39 * * * *" - cron: "39 * * * *"
workflow_dispatch: workflow_dispatch:
permissions: permissions:
contents: write contents: write
jobs: jobs:
repo-sync: repo-sync:
if: github.repository_owner == 'clan-lol' if: github.repository_owner == 'clan-lol'
@@ -15,10 +13,15 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
persist-credentials: false persist-credentials: false
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.CI_APP_ID }}
private-key: ${{ secrets.CI_PRIVATE_KEY }}
- name: repo-sync - name: repo-sync
uses: repo-sync/github-sync@v2 uses: repo-sync/github-sync@v2
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
with: with:
source_repo: "https://git.clan.lol/clan/clan-core.git" source_repo: "https://git.clan.lol/clan/clan-core.git"
source_branch: "main" source_branch: "main"