From e787111182bc0c627e9e99012e60bf9617d9216c Mon Sep 17 00:00:00 2001 From: Jiashen Cao Date: Wed, 20 Sep 2023 11:33:05 -0400 Subject: [PATCH] fix: release on success only and credential to pass protection rule (#1173) --- .github/workflows/release.yml | 3 ++- .github/workflows/sync.yml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e529525523..17b164d7db 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,8 +9,9 @@ on: - staging jobs: - release: + release-on-success: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 1253843c4a..d70f6c11bf 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -12,6 +12,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.PAT }} - name: Install env. run: | python -m venv test_evadb