summary refs log tree commit diff
path: root/.github/workflows/twisted_trunk.yml
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2023-08-15 17:07:13 +0100
committerGitHub <noreply@github.com>2023-08-15 16:07:13 +0000
commit47c629bb27c0a479068ed5da184dffe7a6cb0fca (patch)
tree157f2e5a00828de56dbb8b9ea217367fd60b693b /.github/workflows/twisted_trunk.yml
parentRun pyupgrade for python 3.7 & 3.8. (#16110) (diff)
downloadsynapse-47c629bb27c0a479068ed5da184dffe7a6cb0fca.tar.xz
Attempt to fix twisted trunk (#16115)
Diffstat (limited to '.github/workflows/twisted_trunk.yml')
-rw-r--r--.github/workflows/twisted_trunk.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/twisted_trunk.yml b/.github/workflows/twisted_trunk.yml
index f7a4ee7c13..67ccc03f6e 100644
--- a/.github/workflows/twisted_trunk.yml
+++ b/.github/workflows/twisted_trunk.yml
@@ -5,6 +5,9 @@ on:
     - cron: 0 8 * * *
 
   workflow_dispatch:
+    # NB: inputs are only present when this workflow is dispatched manually.
+    # (The default below is the default field value in the form to trigger
+    # a manual dispatch). Otherwise the inputs will evaluate to null.
     inputs:
       twisted_ref:
         description: Commit, branch or tag to checkout from upstream Twisted.
@@ -49,7 +52,7 @@ jobs:
           extras: "all"
       - run: |
           poetry remove twisted
-          poetry add --extras tls git+https://github.com/twisted/twisted.git#${{ inputs.twisted_ref }}
+          poetry add --extras tls git+https://github.com/twisted/twisted.git#${{ inputs.twisted_ref || 'trunk' }}
           poetry install --no-interaction --extras "all test"
       - name: Remove warn_unused_ignores from mypy config
         run: sed '/warn_unused_ignores = True/d' -i mypy.ini