Merge pull request #25 from joshuasundance-swca/actions
Browse files
.dockerignore
CHANGED
@@ -11,3 +11,4 @@ Dockerfile
|
|
11 |
kubernetes
|
12 |
docker-compose.yml
|
13 |
junk/
|
|
|
|
11 |
kubernetes
|
12 |
docker-compose.yml
|
13 |
junk/
|
14 |
+
kubernetes/
|
.github/workflows/ai_changelog.yml
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Update AI Changelog on Push to Main
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches: [main]
|
6 |
+
paths-ignore:
|
7 |
+
- "AI_CHANGELOG.md"
|
8 |
+
|
9 |
+
jobs:
|
10 |
+
update-changelog:
|
11 |
+
runs-on: ubuntu-latest
|
12 |
+
|
13 |
+
permissions:
|
14 |
+
contents: write
|
15 |
+
pull-requests: write
|
16 |
+
|
17 |
+
steps:
|
18 |
+
|
19 |
+
- name: Checkout code
|
20 |
+
uses: actions/checkout@v4
|
21 |
+
with:
|
22 |
+
token: ${{ secrets.PAT }}
|
23 |
+
fetch-depth: 0
|
24 |
+
|
25 |
+
- name: Set up Python
|
26 |
+
uses: actions/setup-python@v4
|
27 |
+
with:
|
28 |
+
python-version: 3.11
|
29 |
+
cache: pip
|
30 |
+
|
31 |
+
- name: Install Python libraries
|
32 |
+
run: |
|
33 |
+
pip install --user ai_changelog==0.0.9
|
34 |
+
|
35 |
+
- name: Execute script and prepend to AI_CHANGELOG.md
|
36 |
+
env:
|
37 |
+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
38 |
+
LANGCHAIN_API_KEY: ${{ secrets.LANGCHAIN_API_KEY }}
|
39 |
+
LANGCHAIN_PROJECT: ai-changelog-langchain-streamlit-demo
|
40 |
+
LANGCHAIN_ENDPOINT: https://api.smith.langchain.com
|
41 |
+
LANGCHAIN_TRACING_V2: true
|
42 |
+
run: ai_changelog origin/main^..origin/main
|
43 |
+
|
44 |
+
- name: Commit changes
|
45 |
+
with:
|
46 |
+
COMMIT_MESSAGE: "Update AI Changelog"
|
47 |
+
file_pattern: "AI_CHANGELOG.md"
|
48 |
+
uses: stefanzweifel/git-auto-commit-action@v4
|
.github/workflows/check-file-size-limit.yml
CHANGED
@@ -3,8 +3,6 @@ on:
|
|
3 |
pull_request:
|
4 |
branches: [main]
|
5 |
|
6 |
-
workflow_dispatch:
|
7 |
-
|
8 |
jobs:
|
9 |
check-file-sizes:
|
10 |
runs-on: ubuntu-latest
|
|
|
3 |
pull_request:
|
4 |
branches: [main]
|
5 |
|
|
|
|
|
6 |
jobs:
|
7 |
check-file-sizes:
|
8 |
runs-on: ubuntu-latest
|
.github/workflows/docker-hub.yml
CHANGED
@@ -3,8 +3,11 @@ name: Push to Docker Hub
|
|
3 |
on:
|
4 |
push:
|
5 |
branches: [main]
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
8 |
jobs:
|
9 |
build-and-push-docker:
|
10 |
runs-on: ubuntu-latest
|
|
|
3 |
on:
|
4 |
push:
|
5 |
branches: [main]
|
6 |
+
paths:
|
7 |
+
- 'Dockerfile'
|
8 |
+
- '.dockerignore'
|
9 |
+
- 'requirements.txt'
|
10 |
+
- 'langchain_streamlit_demo/*'
|
11 |
jobs:
|
12 |
build-and-push-docker:
|
13 |
runs-on: ubuntu-latest
|