2024-06-28 13:47:27 +00:00
|
|
|
# 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:
|
2024-06-28 14:10:19 +00:00
|
|
|
name: Analyze Code
|
2024-06-28 13:47:27 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-07-08 14:48:05 +00:00
|
|
|
|
2024-06-28 13:47:27 +00:00
|
|
|
# Run Reliability Copilot in Doker Container
|
|
|
|
- name: Run Copilot
|
|
|
|
run: |
|
2024-07-15 19:31:49 +00:00
|
|
|
docker run --rm -e ONEUPTIME_URL='https://test.oneuptime.com' \
|
2024-06-28 13:47:27 +00:00
|
|
|
-e ONEUPTIME_REPOSITORY_SECRET_KEY=${{ secrets.COPILOT_ONEUPTIME_REPOSITORY_SECRET_KEY }} \
|
2024-07-08 14:45:14 +00:00
|
|
|
-e CODE_REPOSITORY_PASSWORD=${{ github.token }} \
|
|
|
|
-e CODE_REPOSITORY_USERNAME='simlarsen' \
|
2024-07-15 15:49:21 +00:00
|
|
|
-e ONEUPTIME_LLM_SERVER_URL='http://57.128.112.160:8547' \
|
|
|
|
oneuptime/copilot:test
|