raulcd commented on code in PR #326:
URL: https://github.com/apache/arrow-site/pull/326#discussion_r1123022727


##########
.github/workflows/deploy.yml:
##########
@@ -27,17 +27,33 @@ jobs:
   deploy:
     name: Deploy
     runs-on: ubuntu-latest
+    container:
+        image: ubuntu:latest
     steps:
-      - uses: actions/checkout@v2
-      - uses: ruby/setup-ruby@v1
+      - name: Update packages
+        run: |
+            apt-get update -qq
+      - name: Install dependencies
+        run: |
+            apt-get install -qq -y jq rsync git libyaml-0-2 npm
+      - name: Checkout git repository
+        uses: actions/checkout@v2
+      - name: Set GitHub workspace as git safe.directory # Required to work 
around: https://github.com/actions/checkout/issues/766
+        run: |
+            git config --global --add safe.directory "$GITHUB_WORKSPACE"

Review Comment:
   I think in `actions/checkout@v3` the `set-safe-directory` default `true` was 
added to not require this.
   It can also be overriden to set the path: 
https://github.com/actions/checkout#usage
   like:
   ```
         - name: Checkout git repository
           uses: actions/checkout@v3
           with:
               set-safe-directory: "$GITHUB_WORKSPACE"
   ```
   but I think the default is adding it to safe-directory already.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to