From 063a83b8e85a5bdaf8c5016a622e818b39447d4a Mon Sep 17 00:00:00 2001
From: Athanasius <github@miggy.org>
Date: Fri, 31 Jul 2020 13:17:56 +0100
Subject: [PATCH] Move 'Show github context' to just before flake8

$GITHUB_EVENT_PATH wasn't set in the shell with it first.
---
 .github/workflows/pr-checks.yml | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml
index 8f6937e3..18af3222 100644
--- a/.github/workflows/pr-checks.yml
+++ b/.github/workflows/pr-checks.yml
@@ -15,16 +15,6 @@ jobs:
   flake8:
     runs-on: ubuntu-18.04
 
-    ####################################################################
-    # Show full github context to aid debugging.
-    ####################################################################
-    steps:
-    - name: Show github context
-      run: |
-        env
-        cat $GITHUB_EVENT_PATH
-    ####################################################################
-
     ####################################################################
     # Checkout the necessary commits
     ####################################################################
@@ -52,6 +42,16 @@ jobs:
         if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; elif [ -f requirements.txt ]; then pip install -r requirements.txt ; fi
     ####################################################################
 
+    ####################################################################
+    # Show full github context to aid debugging.
+    ####################################################################
+    steps:
+    - name: Show github context
+      run: |
+        env
+        cat $GITHUB_EVENT_PATH
+    ####################################################################
+
     ####################################################################
     # Lint with flake8
     ####################################################################