Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharking committed Jun 19, 2024
1 parent 3896587 commit 4c4e726
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ jobs:
- name: Read schema.yml and fetch file
id: fetch-file
run: |
sudo apt-get install -y jq
CONTENT=$(cat Fastbot/schema.yml)
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
cat Fastbot/schema.yml
# sudo apt-get install -y jq
# CONTENT=$(cat Fastbot/schema.yml)
# 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

0 comments on commit 4c4e726

Please sign in to comment.