Skip to content

Commit ee1e0ad

Browse files
suma-prakashSuma Prakashdaniel-colgan
authored
Adding deploy github action and Sync doc changes to readme (#17)
* Adding changes * Refactoring * Script changes to sync files * Adding action * Adding correct command * removed action file * adding action * testing action * Adding new action * Correcting action * test * Adding action * debug action * testing * removing debug code * testing create * testing multiple changes * making errors more valid * testing error * Testing action again * test create * test * test * test create again * test error * test error 1 * test error 2 * making error readble 1 * making error readble 1.1 * making error readble 2.0 * test again * test again create * final commit * refactor code according to review comments * changing comment --------- Co-authored-by: Suma Prakash <suma [email protected]> Co-authored-by: Daniel Colgan <[email protected]>
1 parent 0f1c2e0 commit ee1e0ad

13 files changed

Lines changed: 2661 additions & 1 deletion

.github/workflows/deploy_docs.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy openapi spec to readme
2+
on:
3+
push:
4+
# Sequence of patterns matched against refs/heads
5+
branches:
6+
- main
7+
jobs:
8+
deployment:
9+
runs-on: ubuntu-latest
10+
environment: production
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 2
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: '14'
18+
- run: npm install
19+
- name: Changed Files
20+
id: changed-files
21+
uses: tj-actions/[email protected]
22+
- run: node ./scripts/run-sync.js ${{ steps.changed-files.outputs.all_changed_files }} ${{ secrets.README_API_KEY }}
23+
- name: List all changed files
24+
run: |
25+
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
26+
echo "$file was changed"
27+
done

.github/workflows/linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Yaml Lint
1717
uses: karancode/yamllint-github-action@master
1818
with:
19-
yamllint_file_or_dir: 'descriptions/*.yaml'
19+
yamllint_file_or_dir: 'descriptions/*/*.yaml'
2020
yamllint_strict: false
2121
yamllint_config_filepath: '.yamllint-config.yml'
2222
yamllint_comment: true

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules/
2+
3+
# dotenv environment variable files
4+
.env
5+
.env.development.local
6+
.env.test.local
7+
.env.production.local
8+
.env.local

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package-lock.json
2+
package.json

.prettierrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
3+
module.exports = {
4+
printWidth: 100,
5+
singleQuote: true,
6+
trailingComma: 'all',
7+
};

0 commit comments

Comments
 (0)