-
Notifications
You must be signed in to change notification settings - Fork 232
40 lines (36 loc) · 1.21 KB
/
reliability-copilot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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
env:
CI_PIPELINE_ID: ${{github.run_number}}
permissions:
actions: read
# We will never commit to the main/master branch. We will always create a PR.
contents: write
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Run Reliability Copilot in Doker Container
- name: Run Copilot
run: |
docker run --rm -v $(pwd):/repository -w /repository oneuptime/copilot:test \
-e ONEUPTIME_URL='https://test.oneuptime.com' \
-e ONEUPTIME_REPOSITORY_SECRET_KEY=${{ secrets.COPILOT_ONEUPTIME_REPOSITORY_SECRET_KEY }} \
-e GITHUB_TOKEN=${{ github.token }} \
-e GITHUB_USERNAME='simlarsen' \
-e ONEUPTIME_LLAMA_SERVER_URL='http://57.128.112.160:8547'