]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
👷 Add GitHub Actions step dump context to debug external failures (#10008)
authorSebastián Ramírez <tiangolo@gmail.com>
Fri, 4 Aug 2023 18:18:38 +0000 (20:18 +0200)
committerGitHub <noreply@github.com>
Fri, 4 Aug 2023 18:18:38 +0000 (20:18 +0200)
.github/workflows/issue-manager.yml
.github/workflows/label-approved.yml
.github/workflows/latest-changes.yml
.github/workflows/notify-translations.yml
.github/workflows/people.yml
.github/workflows/smokeshow.yml
.github/workflows/test.yml

index 32462310312c54b2c4b86bea663cd99c97a8ddf0..bb967fa1183629c5b6daa174c4ff34a996488630 100644 (file)
@@ -19,6 +19,10 @@ jobs:
     if: github.repository_owner == 'tiangolo'
     runs-on: ubuntu-latest
     steps:
+      - name: Dump GitHub context
+        env:
+          GITHUB_CONTEXT: ${{ toJson(github) }}
+        run: echo "$GITHUB_CONTEXT"
       - uses: tiangolo/issue-manager@0.4.0
         with:
           token: ${{ secrets.FASTAPI_ISSUE_MANAGER }}
index 976d29f74d758ab18ad7a876661bea15ebc5590b..2113c468ac835ceac35b14279a5975f6768bdd4e 100644 (file)
@@ -9,6 +9,10 @@ jobs:
     if: github.repository_owner == 'tiangolo'
     runs-on: ubuntu-latest
     steps:
+    - name: Dump GitHub context
+      env:
+        GITHUB_CONTEXT: ${{ toJson(github) }}
+      run: echo "$GITHUB_CONTEXT"
     - uses: docker://tiangolo/label-approved:0.0.2
       with:
         token: ${{ secrets.FASTAPI_LABEL_APPROVED }}
index 0461f3dd3eb9f7699b422db5a2f2d416c344e6b8..e38870f4648fb73e893d6df431b3f839ffcd9f90 100644 (file)
@@ -20,6 +20,10 @@ jobs:
   latest-changes:
     runs-on: ubuntu-latest
     steps:
+      - name: Dump GitHub context
+        env:
+          GITHUB_CONTEXT: ${{ toJson(github) }}
+        run: echo "$GITHUB_CONTEXT"
       - uses: actions/checkout@v3
         with:
           # To allow latest-changes to commit to the main branch
index cd7affbc395f913692d2eddaf6071291ff3968e1..44ee83ec02422018c76baf7a463718eabeb107c5 100644 (file)
@@ -19,6 +19,10 @@ jobs:
   notify-translations:
     runs-on: ubuntu-latest
     steps:
+      - name: Dump GitHub context
+        env:
+          GITHUB_CONTEXT: ${{ toJson(github) }}
+        run: echo "$GITHUB_CONTEXT"
       - uses: actions/checkout@v3
       # Allow debugging with tmate
       - name: Setup tmate session
index aa7f34464e2c965736bf1cbec01f16312d68ebee..4480a1427434e19a48a30620ac830d91045546d8 100644 (file)
@@ -15,6 +15,10 @@ jobs:
     if: github.repository_owner == 'tiangolo'
     runs-on: ubuntu-latest
     steps:
+      - name: Dump GitHub context
+        env:
+          GITHUB_CONTEXT: ${{ toJson(github) }}
+        run: echo "$GITHUB_CONTEXT"
       - uses: actions/checkout@v3
       # Ref: https://github.com/actions/runner/issues/2033
       - name: Fix git safe.directory in container
index c6d894d9f61eb368b01434cf2ad45808581a1d14..4e689d95c1aa053405439d0e068fdaecdaa400f9 100644 (file)
@@ -14,6 +14,10 @@ jobs:
     runs-on: ubuntu-latest
 
     steps:
+      - name: Dump GitHub context
+        env:
+          GITHUB_CONTEXT: ${{ toJson(github) }}
+        run: echo "$GITHUB_CONTEXT"
       - uses: actions/setup-python@v4
         with:
           python-version: '3.9'
index fbaf759c3238ab480c44bcabe3e5484006761d52..6a512a019b8a5639f3aac6f062fd0986d5122223 100644 (file)
@@ -13,6 +13,10 @@ jobs:
   lint:
     runs-on: ubuntu-latest
     steps:
+      - name: Dump GitHub context
+        env:
+          GITHUB_CONTEXT: ${{ toJson(github) }}
+        run: echo "$GITHUB_CONTEXT"
       - uses: actions/checkout@v3
       - name: Set up Python
         uses: actions/setup-python@v4
@@ -42,6 +46,10 @@ jobs:
         pydantic-version: ["pydantic-v1", "pydantic-v2"]
       fail-fast: false
     steps:
+      - name: Dump GitHub context
+        env:
+          GITHUB_CONTEXT: ${{ toJson(github) }}
+        run: echo "$GITHUB_CONTEXT"
       - uses: actions/checkout@v3
       - name: Set up Python
         uses: actions/setup-python@v4
@@ -80,6 +88,10 @@ jobs:
     needs: [test]
     runs-on: ubuntu-latest
     steps:
+      - name: Dump GitHub context
+        env:
+          GITHUB_CONTEXT: ${{ toJson(github) }}
+        run: echo "$GITHUB_CONTEXT"
       - uses: actions/checkout@v3
       - uses: actions/setup-python@v4
         with:
@@ -110,6 +122,10 @@ jobs:
       - coverage-combine
     runs-on: ubuntu-latest
     steps:
+      - name: Dump GitHub context
+        env:
+          GITHUB_CONTEXT: ${{ toJson(github) }}
+        run: echo "$GITHUB_CONTEXT"
       - name: Decide whether the needed jobs succeeded or failed
         uses: re-actors/alls-green@release/v1
         with: