Update colin.yml #2
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: Improve Code Comments | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| models: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| run-script: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Cache the generated model requests made by GenAIScript | |
| # | |
| # A new cache is created for each run to ensure that the latest model requests are used, | |
| # but previous caches can be restored and reused if availble. | |
| - uses: actions/cache@v4 | |
| with: | |
| path: .genaiscript/cache/** | |
| key: genaiscript-${{ github.run_id }} | |
| restore-keys: genaiscript- | |
| - uses: actions/checkout@v4 | |
| - uses: pelikhan/action-genai-commentor@main | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| update_existing: true | |
| max_edits: 2 |