From 2d07944dce2193d5c30ec934fbbdbe604ce697d9 Mon Sep 17 00:00:00 2001 From: alifnaufalyasin Date: Mon, 31 Jul 2023 22:30:52 +0700 Subject: [PATCH] update workflow add exclude file --- .github/workflows/deploy.yml | 3 +++ .github/workflows/generate-data-member.yml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e349f99d..1f1b09fa 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,3 +32,6 @@ jobs: BRANCH: production # The branch the action should deploy to. FOLDER: out # The folder the action should deploy. CLEAN: true # Automatically remove deleted files from the deploy branch + clean-exclude: | + data/*.json + diff --git a/.github/workflows/generate-data-member.yml b/.github/workflows/generate-data-member.yml index e1bcc811..950687fa 100644 --- a/.github/workflows/generate-data-member.yml +++ b/.github/workflows/generate-data-member.yml @@ -21,7 +21,7 @@ jobs: cd .. rm -rf ./scripts git add ./data/dataMember.json - + # Commit the changes - name: Commit changes run: | @@ -33,6 +33,6 @@ jobs: - name: Push changes uses: ad-m/github-push-action@master with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.TOKEN_SECRET }}