Skip to content

Commit d6e46b0

Browse files
authored
Don't create PRs for include resolves
This only adds extra work for dubious benefits
1 parent 06e7171 commit d6e46b0

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/includes.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,29 @@ on:
77
paths:
88
- '**.md'
99

10+
env:
11+
BOT_LOGIN: ${{ secrets.BOT_LOGIN }}
12+
BOT_NAME: ${{ secrets.BOT_NAME }}
13+
BOT_EMAIL: ${{ secrets.BOT_EMAIL }}
14+
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
15+
1016
jobs:
1117
includes:
1218
runs-on: ubuntu-latest
1319
steps:
1420
- name: 🤘 checkout
1521
uses: actions/checkout@v2
22+
with:
23+
ref: main
24+
token: ${{ env.BOT_TOKEN }}
1625

1726
- name: +M▼ includes
1827
uses: devlooped/actions-include@v4
1928

20-
- name: ✍ pull request
21-
uses: peter-evans/create-pull-request@v3
22-
with:
23-
base: main
24-
branch: markdown-includes
25-
delete-branch: true
26-
commit-message: +M▼ includes
27-
title: +M▼ includes
28-
body: +M▼ includes
29+
- name: ✍ commit
30+
run: |
31+
git config --local user.name ${BOT_NAME}
32+
git config --local user.email ${BOT_EMAIL}
33+
git add .
34+
git commit -m "+M▼ includes" || exit 0
35+
git push

0 commit comments

Comments
 (0)