From dc1cbd09e20fa34b6afb119642eb20eb1260f8d0 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 7 Dec 2021 17:26:48 +0530 Subject: [PATCH] chore(action): update action version Signed-off-by: Pranav C --- .github/workflows/publish-blog.yml | 3 ++- .github/workflows/publish-book.yml | 3 ++- .github/workflows/publish-docs.yml | 6 +++--- .github/workflows/publish-noco-i18n.yml | 3 ++- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-blog.yml b/.github/workflows/publish-blog.yml index 06400c9861..6323bbfea1 100644 --- a/.github/workflows/publish-blog.yml +++ b/.github/workflows/publish-blog.yml @@ -30,10 +30,11 @@ jobs: - name: Pushes generated output if: ${{ env.CHANGED == 'OK' }} - uses: dmnemec/copy_file_to_another_repo_action@3fe42250d47e0764da9de9939b151b09a26e5857 + uses: dmnemec/copy_file_to_another_repo_action@1b29cbd9a323185f20b175dc6d5f8f31be5c0658 env: API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }} with: + clear_folder: 'docs/dist' source_file: 'packages/noco-blog/dist/' destination_repo: 'nocodb/noco-blog' destination_folder: 'docs' diff --git a/.github/workflows/publish-book.yml b/.github/workflows/publish-book.yml index 73a6b66fbd..6ae91e78d9 100644 --- a/.github/workflows/publish-book.yml +++ b/.github/workflows/publish-book.yml @@ -30,10 +30,11 @@ jobs: - name: Pushes generated output if: ${{ env.CHANGED == 'OK' }} - uses: dmnemec/copy_file_to_another_repo_action@3fe42250d47e0764da9de9939b151b09a26e5857 + uses: dmnemec/copy_file_to_another_repo_action@1b29cbd9a323185f20b175dc6d5f8f31be5c0658 env: API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }} with: + clear_folder: 'docs/dist' source_file: 'packages/noco-book/dist/' destination_repo: 'nocodb/noco-book' destination_folder: 'docs' diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index b432d8fed3..937ee9e31a 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -19,11 +19,11 @@ jobs: echo "CHANGED=$([[ $(lerna ls --since ${{github.event.before}} | grep noco-docs) = noco-docs ]] && echo 'OK')" >> $GITHUB_ENV - uses: actions/setup-node@v2 -# if: ${{ env.CHANGED == 'OK' || github.event_name == 'release' }} + if: ${{ env.CHANGED == 'OK' || github.event_name == 'release' }} with: node-version: 14 - name: Build docs -# if: ${{ env.CHANGED == 'OK' || github.event_name == 'release' }} + if: ${{ env.CHANGED == 'OK' || github.event_name == 'release' }} run: | cd packages/noco-docs npm install @@ -31,7 +31,7 @@ jobs: - name: Pushes generated output -# if: ${{ env.CHANGED == 'OK' || github.event_name == 'release' }} + if: ${{ env.CHANGED == 'OK' || github.event_name == 'release' }} uses: dmnemec/copy_file_to_another_repo_action@1b29cbd9a323185f20b175dc6d5f8f31be5c0658 env: API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/publish-noco-i18n.yml b/.github/workflows/publish-noco-i18n.yml index 7349f42c87..8c95c934c3 100644 --- a/.github/workflows/publish-noco-i18n.yml +++ b/.github/workflows/publish-noco-i18n.yml @@ -33,10 +33,11 @@ jobs: - name: Pushes generated output if: ${{ env.CHANGED == 'OK' || github.event_name == 'release' }} # uses: dmnemec/copy_file_to_another_repo_action@main - uses: dmnemec/copy_file_to_another_repo_action@3fe42250d47e0764da9de9939b151b09a26e5857 + uses: dmnemec/copy_file_to_another_repo_action@1b29cbd9a323185f20b175dc6d5f8f31be5c0658 env: API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }} with: + clear_folder: 'docs/dist' source_file: 'packages/noco-i18n/dist/' destination_repo: 'nocodb/noco-i18n' destination_folder: 'docs'