Update workflow

This commit is contained in:
Heiner Lohaus 2024-01-21 02:38:24 +01:00
parent 9cbe9c1ccb
commit e13aa2e438
2 changed files with 11 additions and 8 deletions

View File

@ -6,16 +6,10 @@ on:
- opened
- synchronize
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: read
pull-requests: write
jobs:
review:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout Repo
uses: actions/checkout@v3
@ -30,4 +24,6 @@ jobs:
- name: Install PyGithub
run: pip install PyGithub
- name: AI Code Review
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python -m etc.tool.copilot

View File

@ -1,6 +1,13 @@
name: Unittest
on: [push]
on:
pull_request:
types:
- opened
- synchronize
push:
branches:
- 'main'
jobs:
build: