change token name
Browse files- .github/workflows/ai_changelog.yml +30 -31
- .github/workflows/bumpver.yml +24 -24
- .github/workflows/check-file-size-limit.yml +1 -1
- .github/workflows/docker-hub.yml +0 -31
- .github/workflows/hf-space.yml +1 -1
- LICENSE +1 -1
.github/workflows/ai_changelog.yml
CHANGED
@@ -15,34 +15,33 @@ jobs:
|
|
15 |
pull-requests: write
|
16 |
|
17 |
steps:
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
uses: stefanzweifel/git-auto-commit-action@v4
|
|
|
15 |
pull-requests: write
|
16 |
|
17 |
steps:
|
18 |
+
- name: Checkout code
|
19 |
+
uses: actions/checkout@v4
|
20 |
+
with:
|
21 |
+
token: ${{ secrets.GITHUB_TOKEN }}
|
22 |
+
fetch-depth: 0
|
23 |
+
|
24 |
+
- name: Set up Python
|
25 |
+
uses: actions/setup-python@v4
|
26 |
+
with:
|
27 |
+
python-version: 3.11
|
28 |
+
cache: pip
|
29 |
+
|
30 |
+
- name: Install Python libraries
|
31 |
+
run: |
|
32 |
+
pip install --user ai_changelog==0.0.9
|
33 |
+
|
34 |
+
- name: Execute script and prepend to AI_CHANGELOG.md
|
35 |
+
env:
|
36 |
+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
37 |
+
LANGCHAIN_API_KEY: ${{ secrets.LANGCHAIN_API_KEY }}
|
38 |
+
LANGCHAIN_PROJECT: ai-changelog-langchain-streamlit-demo
|
39 |
+
LANGCHAIN_ENDPOINT: https://api.smith.langchain.com
|
40 |
+
LANGCHAIN_TRACING_V2: true
|
41 |
+
run: ai_changelog origin/main^..origin/main
|
42 |
+
|
43 |
+
- name: Commit changes
|
44 |
+
with:
|
45 |
+
COMMIT_MESSAGE: "Update AI Changelog"
|
46 |
+
file_pattern: "AI_CHANGELOG.md"
|
47 |
+
uses: stefanzweifel/git-auto-commit-action@v4
|
|
.github/workflows/bumpver.yml
CHANGED
@@ -5,13 +5,13 @@ on:
|
|
5 |
inputs:
|
6 |
bump:
|
7 |
type: choice
|
8 |
-
description:
|
9 |
required: true
|
10 |
-
default:
|
11 |
options:
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
|
16 |
jobs:
|
17 |
bump-version:
|
@@ -19,22 +19,22 @@ jobs:
|
|
19 |
permissions:
|
20 |
contents: write
|
21 |
steps:
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
|
|
5 |
inputs:
|
6 |
bump:
|
7 |
type: choice
|
8 |
+
description: "Bump major, minor, or patch version"
|
9 |
required: true
|
10 |
+
default: "patch"
|
11 |
options:
|
12 |
+
- "major"
|
13 |
+
- "minor"
|
14 |
+
- "patch"
|
15 |
|
16 |
jobs:
|
17 |
bump-version:
|
|
|
19 |
permissions:
|
20 |
contents: write
|
21 |
steps:
|
22 |
+
- name: Checkout code
|
23 |
+
uses: actions/checkout@v4
|
24 |
+
with:
|
25 |
+
token: ${{ secrets.GITHUB_TOKEN }}
|
26 |
+
fetch-depth: 0
|
27 |
+
- name: Set up Python
|
28 |
+
uses: actions/setup-python@v4
|
29 |
+
with:
|
30 |
+
python-version: 3.11
|
31 |
+
cache: pip
|
32 |
+
- name: Install Python libraries
|
33 |
+
run: |
|
34 |
+
pip install --user bumpver
|
35 |
+
- name: git config
|
36 |
+
run: |
|
37 |
+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
38 |
+
git config --local user.name "github-actions[bot]"
|
39 |
+
- name: Bump version
|
40 |
+
run: bumpver update --commit --tag-commit --${{ github.event.inputs.bump }} --push
|
.github/workflows/check-file-size-limit.yml
CHANGED
@@ -11,4 +11,4 @@ jobs:
|
|
11 |
uses: ActionsDesk/[email protected]
|
12 |
with:
|
13 |
filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
|
14 |
-
token: ${{ secrets.
|
|
|
11 |
uses: ActionsDesk/[email protected]
|
12 |
with:
|
13 |
filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
|
14 |
+
token: ${{ secrets.GITHUB_TOKEN }}
|
.github/workflows/docker-hub.yml
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
name: Push to Docker Hub
|
2 |
-
|
3 |
-
on:
|
4 |
-
push:
|
5 |
-
tags:
|
6 |
-
- '*.*.*'
|
7 |
-
|
8 |
-
jobs:
|
9 |
-
build-and-push-docker:
|
10 |
-
runs-on: ubuntu-latest
|
11 |
-
steps:
|
12 |
-
- uses: actions/checkout@v2
|
13 |
-
with:
|
14 |
-
fetch-depth: 0
|
15 |
-
token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
|
16 |
-
|
17 |
-
- name: Log in to Docker Hub
|
18 |
-
uses: docker/login-action@v1
|
19 |
-
with:
|
20 |
-
username: joshuasundance
|
21 |
-
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
22 |
-
|
23 |
-
- name: Build Docker image
|
24 |
-
run: |
|
25 |
-
docker build \
|
26 |
-
-t joshuasundance/langchain-streamlit-demo:${{ github.ref_name }} \
|
27 |
-
-t joshuasundance/langchain-streamlit-demo:latest \
|
28 |
-
.
|
29 |
-
|
30 |
-
- name: Push to Docker Hub
|
31 |
-
run: docker push -a joshuasundance/langchain-streamlit-demo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/hf-space.yml
CHANGED
@@ -15,7 +15,7 @@ jobs:
|
|
15 |
- uses: actions/checkout@v2
|
16 |
with:
|
17 |
fetch-depth: 0
|
18 |
-
token: ${{ secrets.
|
19 |
|
20 |
- name: Push to HuggingFace Space
|
21 |
env:
|
|
|
15 |
- uses: actions/checkout@v2
|
16 |
with:
|
17 |
fetch-depth: 0
|
18 |
+
token: ${{ secrets.GITHUB_TOKEN }}
|
19 |
|
20 |
- name: Push to HuggingFace Space
|
21 |
env:
|
LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
MIT License
|
2 |
|
3 |
-
Copyright (c) 2023
|
4 |
|
5 |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6 |
|
|
|
1 |
MIT License
|
2 |
|
3 |
+
Copyright (c) 2023 Federico Sallemi
|
4 |
|
5 |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6 |
|