From 62b49c1f0a4a84d2732fc7c27725c18b8819da8b Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Fri, 5 Aug 2022 15:07:47 -0300 Subject: [PATCH] Don't create PRs for include resolves This only adds extra work for dubious benefits --- .github/workflows/includes.yml | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/.github/workflows/includes.yml b/.github/workflows/includes.yml index d787ccb..68088ff 100644 --- a/.github/workflows/includes.yml +++ b/.github/workflows/includes.yml @@ -1,4 +1,4 @@ -name: +Mᐁ includes +name: +M▼ includes on: workflow_dispatch: push: @@ -28,20 +28,13 @@ jobs: with: token: ${{ env.GH_TOKEN }} - - name: +Mᐁ includes - uses: devlooped/actions-includes@v1 + - name: +M▼ includes + uses: devlooped/actions-include@v4 - - name: ✍ pull request - uses: peter-evans/create-pull-request@v6 - with: - add-paths: '**.md' - 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 ${{ env.BOT_AUTHOR }} + git config --local user.email ${{ env.BOT_EMAIL }} + git add . + git commit -m "+M▼ includes" || exit 0 + git push