Find Adjacent Repositories #3
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: Find Adjacent Repositories | |
| on: | |
| schedule: | |
| - cron: '0 5 1 * *' # once a month at 5pm Su UTC | |
| workflow_dispatch: | |
| jobs: | |
| recommend-repos: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Adjacent Repositories Recommender | |
| uses: gojiplus/adjacent@v1.3 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} # ✅ Pass the required token | |
| - name: Commit and push changes | |
| run: | | |
| git config --global user.name "github-actions" | |
| git config --global user.email "actions@github.com" | |
| git add README.md | |
| git commit -m "Update adjacent repositories [automated]" || echo "No changes to commit" | |
| git push |