From e432a257ab580a0c0db9ad812f88263871e9021b Mon Sep 17 00:00:00 2001
From: Cole Helbling <cole.helbling@determinate.systems>
Date: Fri, 29 Jul 2022 07:40:44 -0700
Subject: [PATCH] Prevent template files from being committed

---
 action.yml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/action.yml b/action.yml
index e51bd5c..a4fcdbf 100644
--- a/action.yml
+++ b/action.yml
@@ -135,6 +135,12 @@ runs:
       uses: andstor/file-reader-action@v1
       with:
         path: "pr_body.txt"
+    # We need to remove the pr_body files so that the
+    # peter-evans/create-pull-request action does not commit it (the
+    # action commits all new and modified files).
+    - name: Remove PR body template files
+      shell: bash
+      run: rm -f pr_body.txt pr_body.template
     - name: Create PR
       id: create-pr
       uses: peter-evans/create-pull-request@v3