fix: run workflow on protected branch

Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
This commit is contained in:
Vinayak Kulkarni 2022-10-21 17:18:31 +05:30
parent 7650e81804
commit 5ea4a2ec5a
No known key found for this signature in database
GPG key ID: 0FE8ABF8260A1552
2 changed files with 5 additions and 5 deletions

View file

@ -25,8 +25,6 @@ jobs:
uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
check-latest: true
cache: 'npm'
- name: Install dependencies 🚀
run: npm i --prefer-offline --no-audit --omit=optional

View file

@ -4,9 +4,11 @@ on:
push:
branches:
- master
- build/add-ci-workflow
pull_request:
branches:
- master
- build/add-ci-workflow
concurrency:
group: ci-${{ github.ref }}-1
@ -26,15 +28,15 @@ jobs:
name: 'CI'
needs:
- extract-branch
uses: maptiler/tileserver-gl/.github/workflows/ci.yml@master
uses: vinayakkulkarni/tileserver-gl/.github/workflows/ci.yml@build/add-ci-workflow
automerger:
name: 'Auto Merge Bot PRs'
needs:
- ci
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]' }}
uses: maptiler/tileserver-gl/.github/workflows/automerger.yml@master
uses: vinayakkulkarni/tileserver-gl/.github/workflows/automerger.yml@build/add-ci-workflow
ct:
name: 'CT'
needs:
- extract-branch
uses: maptiler/tileserver-gl/.github/workflows/ct.yml@master
uses: vinayakkulkarni/tileserver-gl/.github/workflows/ct.yml@build/add-ci-workflow