diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 984b3be66..9c5205c47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,16 @@ jobs: matrix: node-version: [16] steps: - - uses: actions/checkout@v2 + - name: Check out chain4travel/caminojs + uses: actions/checkout@v2 + with: + repository: 'chain4travel/caminojs' + - name: Check out ${{ github.event.inputs.caminojsRepo }} ${{ github.event.inputs.caminojsBranch }} + if: ${{ github.event_name == 'workflow_dispatch' }} + uses: actions/checkout@v2 + with: + repository: ${{ github.event.inputs.caminojsRepo }} + ref: ${{ github.event.inputs.caminojsBranch }} - uses: actions/setup-node@v2 with: cache: yarn diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 2324892da..7144a9737 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -27,10 +27,16 @@ jobs: e2e: runs-on: ubuntu-18.04 steps: - - name: Checkout CaminoJS + - name: Check out chain4travel/caminojs uses: actions/checkout@v2 with: repository: 'chain4travel/caminojs' + - name: Check out ${{ github.event.inputs.caminojsRepo }} ${{ github.event.inputs.caminojsBranch }} + if: ${{ github.event_name == 'workflow_dispatch' }} + uses: actions/checkout@v2 + with: + repository: ${{ github.event.inputs.caminojsRepo }} + ref: ${{ github.event.inputs.caminojsBranch }} - name: Install dependencies run: sudo apt update && sudo apt install zstd git build-essential nodejs -y - name: Install NodeJS dependencies