oneuptime/.github/workflows/reliability-copilot.yml

31 lines
942 B
YAML
Raw Normal View History

# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
name: "OneUptime Reliability Copilot"
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
# Run every day at midnight UTC
- cron: '0 0 * * *'
jobs:
analyze:
name: Analyze Code
runs-on: ubuntu-latest
steps:
# Run Reliability Copilot in Doker Container
- name: Run Copilot
run: |
docker run --rm -e ONEUPTIME_URL='https://test.oneuptime.com' \
-e ONEUPTIME_REPOSITORY_SECRET_KEY=${{ secrets.COPILOT_ONEUPTIME_REPOSITORY_SECRET_KEY }} \
-e CODE_REPOSITORY_PASSWORD=${{ github.token }} \
-e CODE_REPOSITORY_USERNAME='simlarsen' \
-e ONEUPTIME_LLM_SERVER_URL='http://57.128.112.160:8547' \
oneuptime/copilot:test