-
-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (40 loc) · 1.36 KB
/
ack.yml
File metadata and controls
43 lines (40 loc) · 1.36 KB
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
---
# See https://github.com/ansible/team-devtools/blob/main/.github/workflows/ack.yml
# cspell: ignore amannn hmarr autolabeler
name: ack
on:
pull_request_target:
types: [edited, opened, labeled, unlabeled, synchronize]
workflow_dispatch:
jobs:
# ack:
# uses: ansible/team-devtools/.github/workflows/ack.yml@main
# secrets: inherit
ack:
runs-on: ubuntu-24.04
permissions:
issues: write
pull-requests: write
steps:
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: auto-add labels
if: github.event.issue.labels.length == 0
uses: release-drafter/release-drafter@5de93583980a40bd78603b6dfdcda5b4df377b32 # v7
with:
# we only want to use the auto-labeler bits:
disable-autolabeler: false
disable-releaser: true
# config from .github/release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
- name: auto-approve safe maintenance PRs
if: >
github.actor == 'dependabot[bot]' ||
github.actor == 'renovate[bot]' ||
github.actor == 'pre-commit-ci[bot]'
uses: hmarr/auto-approve-action@v4
with:
review-message: "Auto approved automated PR"