From 90a4e321417bd03f34773f349bedf0bf006a5a15 Mon Sep 17 00:00:00 2001 From: Nicolas Brugneaux Date: Wed, 31 Jan 2024 16:44:28 +0100 Subject: [PATCH] fix: setup env differently --- .github/workflows/open-docs-pr.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/open-docs-pr.yml b/.github/workflows/open-docs-pr.yml index aaaa9ff1b..1b94b0314 100644 --- a/.github/workflows/open-docs-pr.yml +++ b/.github/workflows/open-docs-pr.yml @@ -41,23 +41,23 @@ jobs: with: token: ${{ env.DOCS_TOKEN }} - - name: Open pull-request - run: | - COMMIT=${{ inputs.commit }} - USERNAME=celo-org - REPOSITORY="$USERNAME/docs" - DOCS_CWD="celo-docs" - NEW_BRANCH="ci/${{ github.run_id }}-${{ github.run_attempt }}" - TOKEN=${{ env.DOCS_TOKEN }} + - name: Setup env + env: + COMMIT: ${{ inputs.commit }} + USERNAME: celo-org + REPOSITORY: '${{ env.USERNAME }}/docs' + DOCS_CWD: 'celo-docs' + NEW_BRANCH: 'ci/${{ github.run_id }}-${{ github.run_attempt }}' + TOKEN: ${{ env.DOCS_TOKEN }} # TODO: swap to main - BASE_BRANCH=chore/docs-sync - + BASE_BRANCH: chore/docs-sync + run: | # Clone the remote repository git clone \ --recurse-submodules \ --branch=$BASE_BRANCH \ - https://github.com/$REPOSITORY \ + git@github.com:$REPOSITORY \ $DOCS_CWD cd $DOCS_CWD