shithub: rgbds

Download patch

ref: 6528a955fee82f5e96666b4beb2a7de519734c0b
parent: 431f77127e884848e0c0f44ca48b6460c6459484
author: ISSOtm <eldredhabert0@gmail.com>
date: Mon Sep 21 21:28:42 EDT 2020

Fix checkpatch in CI

--- a/.github/workflows/checkpatch.yml
+++ b/.github/workflows/checkpatch.yml
@@ -5,13 +5,20 @@
   checkpatch:
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v2
+      - name: Set up repo
+        run: |
+          git clone -b "${{ github.event.pull_request.head.ref }}" "${{ github.event.pull_request.head.repo.clone_url }}" rgbds
+          cd rgbds
+          git remote add upstream "${{ github.event.pull_request.base.repo.clone_url }}"
+          git fetch upstream
       - name: Set up checkpatch
+        working-directory: rgbds
         run: |
           wget 'https://raw.githubusercontent.com/torvalds/linux/master/scripts/checkpatch.pl'
           chmod +x checkpatch.pl
-          touch const_structs.checkpatch
-          touch spelling.txt
+          wget 'https://raw.githubusercontent.com/torvalds/linux/master/scripts/const_structs.checkpatch'
+          wget 'https://raw.githubusercontent.com/torvalds/linux/master/scripts/spelling.txt'
       - name: Checkpatch
+        working-directory: rgbds
         run: |
-          make checkpatch CHECKPATCH=./checkpatch.pl BASE_REF=${{ github.base_ref }} Q=
+          make checkpatch CHECKPATCH=./checkpatch.pl "BASE_REF=${{ github.event.pull_request.base.sha }}" Q=