-
Notifications
You must be signed in to change notification settings - Fork 35
46 lines (40 loc) · 1.11 KB
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: pr
on:
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: bash -l {0}
jobs:
Build:
name: Build
permissions:
statuses: write
pull-requests: write
uses: ./.github/workflows/_build.yml
BuildDocs:
name: Build Docs
permissions:
statuses: write
pull-requests: write
uses: ./.github/workflows/_build-docs.yml
Dependabot:
runs-on: ubuntu-22.04
permissions:
pull-requests: write
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Fetch Dependabot metadata
id: dependabot-metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Add bpk label
if: contains(steps.dependabot-metadata.outputs.dependency-names, 'bpk-')
run: gh pr edit "$PR_URL" --add-label "bpk" --remove-label "javascript"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_URL: ${{github.event.pull_request.html_url}}