From af90c57bc11cd0c9a426b8647bd9d7714feebda9 Mon Sep 17 00:00:00 2001 From: edgar sarkisian Date: Tue, 26 Nov 2024 16:40:57 -0500 Subject: [PATCH] fix passing creds --- .github/workflows/copybara.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/copybara.yaml b/.github/workflows/copybara.yaml index 1200e64..9ad7112 100644 --- a/.github/workflows/copybara.yaml +++ b/.github/workflows/copybara.yaml @@ -26,13 +26,13 @@ jobs: # put the ssh_key and access_token in files run: | echo "${{ secrets.COPYBARA_SSH_KEY }}" > $HOME/copybara_ssh_key - echo "https://user:${{ secrets.COPYBARA_PAT }}@github.com" > $HOME/copyabara_pat + echo "https://user:${{ secrets.COPYBARA_PAT }}@github.com" > $HOME/copybara_pat - name: Run Copybara # run copybara and pass in the credentials files run: | docker run \ -v "$(pwd)":/usr/src/app \ - -v $HOME/.ssh/switchboard-sdk:/root/.ssh/id_rsa \ - -v $HOME/switchboard/copybara_pat.txt:/root/.git-credentials \ + -v $HOME/copybara_ssh_key:/root/.ssh/id_rsa \ + -v $HOME/copybara_pat:/root/.git-credentials \ gesarki/copybara:1.0.0 copy.bara.sky default ${{ github.event.number }} --force --init-history --git-committer-email "actions@github.com" --git-committer-name "Github Actions" \ No newline at end of file