Skip to content

Commit

Permalink
fix: setup env differently
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbrugneaux committed Jan 31, 2024
1 parent c46e5f2 commit 90a4e32
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/open-docs-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90a4e32

Please sign in to comment.