Sync Forks - CloudEngineHub #343
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync Forks - CloudEngineHub | |
| run-name: Sync Forks - CloudEngineHub | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" # Run every day at 0:00 AM | |
| workflow_dispatch: # Manual dispatch | |
| permissions: | |
| contents: write | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_PAT }} | |
| defaults: | |
| run: | |
| shell: bash | |
| working-directory: ./scripts | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| sync-forks: | |
| name: Sync Forks | |
| runs-on: [self-hosted, Linux, ARM64, CloudEngineHub, runner-1] | |
| steps: | |
| - name: Check out the repository to the runner | |
| uses: actions/checkout@v4 | |
| - name: Configure git | |
| run: | | |
| git config --global user.name "github-actions[CloudEngineHub-bot]" | |
| git config --global user.email "github-actions[CloudEngineHub-bot]@users.noreply.github.com" | |
| - name: Run script sync-forks | |
| run: echo "CloudEngineHub" | ./sync-forks.sh | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_PAT }} |