Gen Forkcounts List - CloudEngineHub #42
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: Gen Forkcounts List - CloudEngineHub | |
| run-name: Gen Forkcounts List - CloudEngineHub | |
| on: | |
| schedule: | |
| - cron: "0 3 * * 1,3,5" # Run every monday, wednesday and friday at 3: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: | |
| gen-forkcounts-list: | |
| name: Gen Forkcounts List | |
| 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 gen-forkcounts-list | |
| run: echo "CloudEngineHub" | ./gen-forkcounts-list.sh | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_PAT }} | |
| - name: Commit changes | |
| run: | | |
| cd .. | |
| git add . | |
| git commit -m "Update Forkcounts List for CloudEngineHub" || exit 0 | |
| - name: Push changes | |
| run: git push | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_PAT }} |