summary refs log tree commit diff
diff options
context:
space:
mode:
authorDan Callahan <danc@element.io>2021-05-26 14:14:43 +0100
committerGitHub <noreply@github.com>2021-05-26 14:14:43 +0100
commit49df2c28e3f2f11ddb29536468990d0cd3ff68d0 (patch)
tree1cf5ab3892dab7b8f0e77201c767433ca2051ac7
parentTweak wording of database recommendation in INSTALL.md (#10057) (diff)
downloadsynapse-49df2c28e3f2f11ddb29536468990d0cd3ff68d0.tar.xz
Fix GitHub Actions lint for newsfragments (#10069)
* Fix GitHub Actions lint for newsfragments

Signed-off-by: Dan Callahan <danc@element.io>
-rw-r--r--.github/workflows/tests.yml6
-rw-r--r--changelog.d/10069.misc1
2 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index e7f3be1b4e..2ae81b5fcf 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -34,7 +34,13 @@ jobs:
     if: ${{ github.base_ref == 'develop'  || contains(github.base_ref, 'release-') }}
     runs-on: ubuntu-latest
     steps:
+      # Note: This and the script can be simplified once we drop Buildkite. See:
+      #   https://github.com/actions/checkout/issues/266#issuecomment-638346893
+      #   https://github.com/actions/checkout/issues/416
       - uses: actions/checkout@v2
+        with:
+          ref: ${{ github.event.pull_request.head.sha }}
+          fetch-depth: 0
       - uses: actions/setup-python@v2
       - run: pip install tox
       - name: Patch Buildkite-specific test script
diff --git a/changelog.d/10069.misc b/changelog.d/10069.misc
new file mode 100644
index 0000000000..a8d2629e9b
--- /dev/null
+++ b/changelog.d/10069.misc
@@ -0,0 +1 @@
+Fix GitHub Actions lint for newsfragments.