]> git.ipfire.org Git - thirdparty/fastapi/sqlmodel.git/commitdiff
👷 Update CI debug mode with Tmate (#629)
authorSebastián Ramírez <tiangolo@gmail.com>
Mon, 31 Jul 2023 19:48:21 +0000 (21:48 +0200)
committerGitHub <noreply@github.com>
Mon, 31 Jul 2023 19:48:21 +0000 (19:48 +0000)
.github/workflows/latest-changes.yml
.github/workflows/publish.yml
.github/workflows/test.yml

index dd59e856d8ddcefe6d5d0d6c80b6a4dc0c657eb9..357767bba958d6aaac08abf2528af657608581a4 100644 (file)
@@ -12,22 +12,22 @@ on:
         description: PR number
         required: true
       debug_enabled:
-        description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'     
+        description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
         required: false
-        default: false
+        default: 'false'
 
 jobs:
   latest-changes:
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v3.1.0
+      - uses: actions/checkout@v3
         with:
           # To allow latest-changes to commit to the main branch
           token: ${{ secrets.SQLMODEL_LATEST_CHANGES }}
       # Allow debugging with tmate
       - name: Setup tmate session
         uses: mxschmitt/action-tmate@v3
-        if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
+        if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
         with:
           limit-access-to-actor: true
       - uses: docker://tiangolo/latest-changes:0.0.3
index d7884111cb313e3c8a96e8d5a1f743b925c30375..1c21cd4a8794355bdd05a242c6a4cb8bf79af0e1 100644 (file)
@@ -9,7 +9,7 @@ on:
       debug_enabled:
         description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
         required: false
-        default: false
+        default: 'false'
 
 jobs:
   publish:
@@ -23,7 +23,7 @@ jobs:
       # Allow debugging with tmate
       - name: Setup tmate session
         uses: mxschmitt/action-tmate@v3
-        if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
+        if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
         with:
           limit-access-to-actor: true
       - uses: actions/cache@v3
index c7435325a7e1e0756803048f3ae9ce4a27c6c194..871557a6fee7aab46731cbfb03f9550f7dcdacc0 100644 (file)
@@ -13,7 +13,7 @@ on:
       debug_enabled:
         description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
         required: false
-        default: false
+        default: 'false'
 
 jobs:
   test:
@@ -36,7 +36,7 @@ jobs:
       # Allow debugging with tmate
       - name: Setup tmate session
         uses: mxschmitt/action-tmate@v3
-        if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
+        if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
         with:
           limit-access-to-actor: true
       - uses: actions/cache@v3