tileserver-gl/.github/workflows/pipeline.yml
Vinayak Kulkarni 5ea4a2ec5a
fix: run workflow on protected branch
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
2022-11-24 23:38:15 +05:30

42 lines
1.1 KiB
YAML

name: 'The Pipeline'
on:
push:
branches:
- master
- build/add-ci-workflow
pull_request:
branches:
- master
- build/add-ci-workflow
concurrency:
group: ci-${{ github.ref }}-1
cancel-in-progress: true
jobs:
extract-branch:
name: 'Fetch branch'
runs-on: ubuntu-latest
outputs:
current_branch: ${{ steps.get-branch.outputs.current_branch }}
steps:
- name: Extract branch name 🕊
id: get-branch
run: echo "::set-output name=current_branch::${GITHUB_REF##*/}"
ci:
name: 'CI'
needs:
- extract-branch
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: vinayakkulkarni/tileserver-gl/.github/workflows/automerger.yml@build/add-ci-workflow
ct:
name: 'CT'
needs:
- extract-branch
uses: vinayakkulkarni/tileserver-gl/.github/workflows/ct.yml@build/add-ci-workflow