Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dphuang2 committed Mar 14, 2024
1 parent 0c28803 commit 98adc00
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/check-status-of-apis.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Check Status of APIs for openapi-examples

on:
push:
branches:
- main
schedule:
# Run every 2 hours
- cron: '0 */2 * * *'
Expand All @@ -12,7 +15,7 @@ jobs:
runs-on: ubicloud
defaults:
run:
working-directory: sdks/
working-directory: update-status-of-apis-in-openapi-examples
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -27,19 +30,22 @@ jobs:
with:
node-version: ${{ matrix.node_version }}
cache: yarn
cache-dependency-path: sdks/yarn.lock
cache-dependency-path: update-status-of-apis-in-openapi-examples/yarn.lock

- name: Set up SSH key for submodule access
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.OPENAPI_EXAMPLES_SUBMODULE_DEPLOY_KEY }}

- run: yarn install --network-timeout 600000
- run: yarn check-status-of-apis

- run: yarn status

- name: Commit and push changes
working-directory: sdks/openapi-examples
run: |
git config --global user.email "[email protected]"
git config --global user.name "konfig-publisher"
git add -A
git commit -m "🤖 automation: perform status check on all APIs"
git push
git push

0 comments on commit 98adc00

Please sign in to comment.