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

View File

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