From 98adc0034fdfd8547f2d59e795bc7b049c887129 Mon Sep 17 00:00:00 2001 From: dphuang2 Date: Thu, 14 Mar 2024 16:29:44 -0700 Subject: [PATCH] update --- .github/workflows/check-status-of-apis.yaml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-status-of-apis.yaml b/.github/workflows/check-status-of-apis.yaml index 60764654c..64c47be34 100644 --- a/.github/workflows/check-status-of-apis.yaml +++ b/.github/workflows/check-status-of-apis.yaml @@ -1,6 +1,9 @@ name: Check Status of APIs for openapi-examples on: + push: + branches: + - main schedule: # Run every 2 hours - cron: '0 */2 * * *' @@ -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 @@ -27,13 +30,17 @@ 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/ssh-agent@v0.8.0 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: | @@ -41,5 +48,4 @@ jobs: git config --global user.name "konfig-publisher" git add -A git commit -m "🤖 automation: perform status check on all APIs" - git push - + git push \ No newline at end of file