From f9638f2ea573c2a4144e7ca5633929b9bb39d0fb Mon Sep 17 00:00:00 2001 From: rkuo-danswer Date: Fri, 27 Sep 2024 09:04:55 -0700 Subject: [PATCH] try user deploy key approach to tagging (#2575) Co-authored-by: Richard Kuo --- .github/workflows/tag-nightly.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tag-nightly.yml b/.github/workflows/tag-nightly.yml index 35a88e7a4..9b096d3e6 100644 --- a/.github/workflows/tag-nightly.yml +++ b/.github/workflows/tag-nightly.yml @@ -12,15 +12,18 @@ jobs: runs-on: [runs-on,runner=2cpu-linux-x64,"run-id=${{ github.run_id }}"] steps: + # actions using GITHUB_TOKEN cannot trigger another workflow, but we do want this to trigger docker pushes + # see https://github.com/orgs/community/discussions/27028#discussioncomment-3254367 for the workaround we + # implement here which needs an actual user's deploy key - name: Checkout code uses: actions/checkout@v4 with: - token: ${{ secrets.GITHUB_TOKEN }} + ssh-key: "${{ secrets.RKUO_DEPLOY_KEY }}" - name: Set up Git user run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" + git config user.name "Richard Kuo [bot]" + git config user.email "rkuo[bot]@danswer.ai" - name: Create Nightly Tag env: