Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 3699b3c

Browse files
committed
reformat files
1 parent e13b621 commit 3699b3c

File tree

3 files changed

+46
-47
lines changed

3 files changed

+46
-47
lines changed

.github/workflows/deploy-docs-site.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/setup-python@v4
2020
with:
2121
python-version: 3.12
22-
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
22+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
2323
- uses: actions/cache@v3
2424
with:
2525
key: mkdocs-material-${{ env.cache_id }}
Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
name: Build and Deploy OpenAPI specification
22
on:
3-
push:
4-
branches:
5-
- main
6-
workflow_dispatch:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
77
permissions:
88
contents: write
99
jobs:
10-
build_and_deploy:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v4
14-
with:
15-
fetch-depth: 0
16-
- name: Configure git Credentials
17-
run: |
18-
git config user.name github-actions[bot]
19-
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
20-
- uses: actions/setup-node@v4
21-
with:
22-
node-version: "lts/*"
23-
cache: "npm"
24-
cache-dependency-path: "./api/src/core/package-lock.json"
25-
- name: Install TypeSpec and compile project
26-
run: |
27-
cd ./api/src/core/
28-
npm install -g @typespec/compiler
29-
npm install
30-
tsp compile .
31-
- name: Commit OpenAPI specification to repository
32-
run: |
33-
tree -L 2
34-
mv ./api/src/core/tsp-output/@typespec/openapi3/openapi.v1.0-alpha.1.yaml ./api/build/core-openapi3.yaml
35-
git add ./api/build/*
36-
git commit -m "[bot]update openapi3 schema" || true
37-
git push || true
10+
build_and_deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
- name: Configure git Credentials
17+
run: |
18+
git config user.name github-actions[bot]
19+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: "lts/*"
23+
cache: "npm"
24+
cache-dependency-path: "./api/src/core/package-lock.json"
25+
- name: Install TypeSpec and compile project
26+
run: |
27+
cd ./api/src/core/
28+
npm install -g @typespec/compiler
29+
npm install
30+
tsp compile .
31+
- name: Commit OpenAPI specification to repository
32+
run: |
33+
tree -L 2
34+
mv ./api/src/core/tsp-output/@typespec/openapi3/openapi.v1.0-beta.1.yaml ./api/build/core-openapi3.yaml
35+
git add ./api/build/*
36+
git commit -m "[bot]update openapi3 schema" || true
37+
git push || true

.github/workflows/python-mkdocs.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,25 @@ name: Build mkdocs documentation
55

66
on:
77
pull_request:
8-
branches: [ "main" ]
8+
branches: ["main"]
99

1010
permissions:
1111
contents: read
1212

1313
jobs:
1414
build:
15-
1615
runs-on: ubuntu-latest
1716

1817
steps:
19-
- uses: actions/checkout@v4
20-
- name: Set up Python 3.10
21-
uses: actions/setup-python@v3
22-
with:
23-
python-version: "3.12"
24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
28-
- name: Build with mkdocs
29-
run: |
30-
mkdocs build
18+
- uses: actions/checkout@v4
19+
- name: Set up Python 3.12
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: "3.12"
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
27+
- name: Build with mkdocs
28+
run: |
29+
mkdocs build

0 commit comments

Comments
 (0)