From 5f575a6429fe8c8b5cb950e6013e2abba3fb3a31 Mon Sep 17 00:00:00 2001
From: Chris Fenner <cfenn@google.com>
Date: Sun, 14 Aug 2022 20:13:47 -0700
Subject: [PATCH] chown the repo dir (#31)

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

diff --git a/action.yml b/action.yml
index 7daf4e1..64fa81b 100644
--- a/action.yml
+++ b/action.yml
@@ -10,6 +10,10 @@ inputs:
 runs:
   using: 'composite'
   steps:
+    # let the container take ownership of the repo dir, in case the user wants to check in the results
+    # workaround to https://github.com/actions/runner/issues/2033
+    - run: chown -R $(id -u):$(id -g) $PWD
+      shell: sh
     # There are some configuration dependencies required for Mermaid.
     # They have to be in the current directory.
     - run: |