-
-
Notifications
You must be signed in to change notification settings - Fork 228
72 lines (64 loc) · 2.01 KB
/
automation.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Automation 🤖
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
push:
branches:
- master
paths-ignore:
- "**/*.md"
pull_request_target:
jobs:
compose-comment:
name: Compose PR comment
if: ${{ always() && !cancelled() && github.event_name == 'pull_request_target' }}
uses: ./.github/workflows/job_messages.yml
with:
commit: ${{ github.event.pull_request.head.sha }}
commenting_workflow_run_id: ${{ github.run_id }}
in_progress: true
push-comment:
name: Push comment to PR 🖥️
if: |
always() &&
!cancelled() &&
github.event_name == 'pull_request_target' &&
needs.compose-comment.result == 'success'
runs-on: ubuntu-latest
needs:
- compose-comment
steps:
- name: Create comment
uses: thollander/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }}
message: ${{ needs.compose-comment.outputs.msg }}
comment_tag: ${{ needs.compose-comment.outputs.marker }}
mode: recreate
project:
name: Project board 📊
runs-on: ubuntu-latest
steps:
- uses: alex-page/[email protected]
if: ${{ github.event_name == 'pull_request_target' }}
continue-on-error: true
with:
project: Ongoing development
column: In progress
repo-token: ${{ secrets.JF_BOT_TOKEN }}
label:
name: Labeling 🏷️
runs-on: ubuntu-latest
steps:
- name: Label PR depending on modified files
uses: actions/labeler@v4
if: ${{ github.event_name == 'pull_request_target' }}
continue-on-error: true
with:
repo-token: "${{ secrets.JF_BOT_TOKEN }}"
- name: Check all PRs for merge conflicts ⛔
uses: eps1lon/[email protected]
with:
dirtyLabel: "merge conflict"
repoToken: ${{ secrets.JF_BOT_TOKEN }}