Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharking committed Jun 19, 2024
1 parent 31214df commit 6c686ce
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,14 @@ jobs:
- name: Read schema.yml and fetch file
id: fetch-file
run: |
sudo apt-get install jq
CONTENT=$(cat Fastbot/schema.yml)
echo "$CONTENT" | jq -r '.config.path'
# CONFIG_PATH=$(echo "$CONTENT" | jq -r '.config.path')
# CONFIG_BRANCH=$(echo "$CONTENT" | jq -r '.config.branch')
# sudo apt-get install -y jq
# CONTENT=$(cat Fastbot/schema.yml)
# echo "Path: $CONFIG_PATH"
# echo "Branch: $CONFIG_BRANCH"
# JSON_FILE_URL="https://raw.githubusercontent.com/$CONFIG_PATH/$CONFIG_BRANCH/schema.json"
# curl -sS "$JSON_FILE_URL" > temp.json
sudo apt-get install -y jq
CONTENT=$(cat Fastbot/schema_dir.json)
CONFIG_PATH=$(echo "$CONTENT" | jq -r '.config.path')
CONFIG_BRANCH=$(echo "$CONTENT" | jq -r '.config.branch')
echo "Path: $CONFIG_PATH"
echo "Branch: $CONFIG_BRANCH"
JSON_FILE_URL="https://raw.githubusercontent.com/$CONFIG_PATH/$CONFIG_BRANCH/schema.json"
curl -sS "$JSON_FILE_URL" > temp.json
- uses: InoUno/yaml-ls-check@develop
with:
Expand Down
3 changes: 0 additions & 3 deletions Fastbot/schema.yml

This file was deleted.

6 changes: 6 additions & 0 deletions Fastbot/schema_dir.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"config": {
"path": "2060-io/fastbot-conversational-schema",
"branch": "fastbot-1.0"
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ This is an open-source project that manages various templates for deploying serv

- If you wish to contribute to the templates, create a pull request. After undergoing validation for consistency with the template version, it will be added to the repository.

- It's important to note that the template file for Fastbots includes a 'config.yml' file. This file contains the generic deployment used by the project. Since this project aims to create custom chatbots, this file can be highly parameterized according to your needs. If you require a personalized chatbot, feel free to fork this repository and customize the file. Additionally, note that the 'schema.yml' file in this project contains the validation schema applied to 'config.yml'. It ensures necessary tests are conducted to validate its consistency.
- It's important to note that the template file for Fastbots includes a `config.yml` file. This file contains the generic deployment used by the project. Since this project aims to create custom chatbots, this file can be highly parameterized according to your needs. If you require a personalized chatbot, feel free to fork this repository and customize the file. Additionally, note that the `schema.yml` file in this project contains the validation schema applied to `config.yml`. It ensures necessary tests are conducted to validate its consistency.

0 comments on commit 6c686ce

Please sign in to comment.