Updating command-rebase.yml workflow from template
authorNextcloud bot <bot@nextcloud.com>
Tue, 26 Apr 2022 15:41:41 +0000 (15:41 +0000)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Wed, 4 May 2022 06:51:41 +0000 (08:51 +0200)
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
.github/workflows/command-rebase.yml

index c497cb38e2d525fb90558a0278ca89a260307b51..a99b3d6336ff9c2d0e178122f7bfb451ac04d295 100644 (file)
@@ -18,7 +18,7 @@ jobs:
 
     steps:
       - name: Add reaction on start
-        uses: peter-evans/create-or-update-comment@v1
+        uses: peter-evans/create-or-update-comment@v2
         with:
           token: ${{ secrets.COMMAND_BOT_PAT }}
           repository: ${{ github.event.repository.full_name }}
@@ -26,18 +26,21 @@ jobs:
           reaction-type: "+1"
 
       - name: Checkout the latest code
-        uses: actions/checkout@v2
+        uses: actions/checkout@v3
         with:
           fetch-depth: 0
           token: ${{ secrets.COMMAND_BOT_PAT }}
 
+      - name: Fix permissions
+        run: git config --global --add safe.directory /github/workspace
+
       - name: Automatic Rebase
         uses: cirrus-actions/rebase@1.5
         env:
           GITHUB_TOKEN: ${{ secrets.COMMAND_BOT_PAT }}
 
       - name: Add reaction on failure
-        uses: peter-evans/create-or-update-comment@v1
+        uses: peter-evans/create-or-update-comment@v2
         if: failure()
         with:
           token: ${{ secrets.COMMAND_BOT_PAT }}