diff --git a/.github/workflows/copy-md.yml b/.github/workflows/copy-md.yml index dcee79057..8b3a89d5a 100644 --- a/.github/workflows/copy-md.yml +++ b/.github/workflows/copy-md.yml @@ -2,8 +2,10 @@ name: Copy MD Files on: workflow_dispatch: - schedule: + schedule: - cron: '0 0,12 * * *' + + jobs: sync-docs: runs-on: ubuntu-latest @@ -13,13 +15,12 @@ jobs: uses: actions/checkout@v2 - name: Set Up Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: + node-version: 16 - name: Install Dependencies run: | - npm install -g jq yarn install --frozen-lockfile - name: Run Sync Script diff --git a/package.json b/package.json index 813f58e1e..7d201a681 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cosmos-sdk-docs", - "version": "0.0.0", + "version": "1.0.0", "private": true, "scripts": { "docusaurus": "docusaurus", diff --git a/sync_script.sh b/sync_script.sh index 12a0447dc..49855fab4 100644 --- a/sync_script.sh +++ b/sync_script.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e -o pipefail + # Set the remote repository URL to clone from REMOTE_REPO_URL="https://github.com/cosmos/cosmos-sdk.git"