Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't create PRs for include resolves #19

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions .github/workflows/includes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,21 @@ on:
paths:
- '**.md'

env:
BOT_LOGIN: ${{ secrets.BOT_LOGIN }}
BOT_NAME: ${{ secrets.BOT_NAME }}
BOT_EMAIL: ${{ secrets.BOT_EMAIL }}
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}

jobs:
includes:
runs-on: ubuntu-latest
steps:
- name: 🤘 checkout
uses: actions/checkout@v2
with:
ref: main
token: ${{ env.BOT_TOKEN }}

- name: 🔍 defaults
uses: ./.github/workflows/defaults
Expand All @@ -25,16 +34,10 @@ jobs:
- name: +Mᐁ includes
uses: devlooped/actions-include@v4

- name: ✍ pull request
uses: peter-evans/create-pull-request@v3
with:
base: main
branch: markdown-includes
delete-branch: true
labels: docs
author: ${{ env.BOT_AUTHOR }}
committer: ${{ env.BOT_AUTHOR }}
commit-message: +Mᐁ includes
title: +Mᐁ includes
body: +Mᐁ includes
token: ${{ env.GH_TOKEN }}
- name: ✍ commit
run: |
git config --local user.name ${BOT_NAME}
git config --local user.email ${BOT_EMAIL}
git add .
git commit -m "+Mᐁ includes" || exit 0
git push