43 lines
933 B
YAML
43 lines
933 B
YAML
name: 'The Pipeline'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
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 "current_branch=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
|
|
ci:
|
|
name: 'CI'
|
|
needs:
|
|
- extract-branch
|
|
uses: ./.github/workflows/ci.yml
|
|
ct:
|
|
name: 'CT'
|
|
needs:
|
|
- extract-branch
|
|
uses: ./.github/workflows/ct.yml
|
|
automerger:
|
|
name: 'Automerge Dependabot PRs'
|
|
needs:
|
|
- ci
|
|
- ct
|
|
- extract-branch
|
|
if: >
|
|
github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]'
|
|
uses: ./.github/workflows/automerger.yml
|