forked from boramalper/magnetico
-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (39 loc) · 1.14 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
47
48
49
50
51
name: Pull Requests
on: [pull_request]
jobs:
commit-lint:
name: Commits linter
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
packages: read
security-events: read
pull-requests: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: ${{ github.event.pull_request.commits }}
ref: ${{ github.event.pull_request.head.sha }}
- name: Commits linter
uses: bugbundle/[email protected]
id: commits
- name: Preview the version
run: echo ${{ steps.commits.outputs.major }}.${{ steps.commits.outputs.minor }}.${{ steps.commits.outputs.patch }}
auto-approve:
name: Auto Approve
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
permissions:
actions: read
contents: read
packages: read
security-events: read
pull-requests: write
steps:
- uses: "fastify/github-action-merge-dependabot@v3"
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
approve-only: true
use-github-auto-merge: false