Skip to content

Commit

Permalink
feat: add support for forks
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon committed Feb 18, 2024
1 parent 3cc30a2 commit 9c09b4d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,17 @@ jobs:
steps:
- name: Set EXPRESS_BRANCH_NAME
run: echo "EXPRESS_BRANCH_NAME=${{ github.event.client_payload.branch || 'master' }}" >> $GITHUB_ENV

- name: Set EXPRESS_REPO
run: echo "EXPRESS_REPO=${{ github.event.client_payload.repo || 'expressjs/express' }}" >> $GITHUB_ENV

- uses: actions/checkout@v3

- name: Replace Expressjs branch name in package.json
run: |
jq '.dependencies.express = "git+https://github.com/expressjs/express.git#'${EXPRESS_BRANCH_NAME}'"' package.json > temp.json && mv temp.json package.json
jq '.dependencies.express = "git+https://github.com/'${EXPRESS_REPO}'.git#'${EXPRESS_BRANCH_NAME}'"' package.json > temp.json && mv temp.json package.json
echo "Express dependency: $(jq -r '.dependencies.express' package.json)"
- name: Install Node.js ${{ matrix.node-version }}
shell: bash -eo pipefail -l {0}
run: |
Expand Down

0 comments on commit 9c09b4d

Please sign in to comment.