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 uses: actions/setup-node@v3
with: with:
node-version-file: 'package.json' node-version-file: 'package.json'
check-latest: true
cache: 'npm'
- name: Install dependencies 🚀 - name: Install dependencies 🚀
run: npm i --prefer-offline --no-audit --omit=optional run: npm i --prefer-offline --no-audit --omit=optional

View file

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