diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cf53222b..52f86c20 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,6 +12,9 @@ jobs: toxenv: [pep8, isort, black, pypi-description, docs, towncrier] steps: - uses: actions/checkout@v2 + with: + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.event.pull_request.head.ref }} - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v1 with: diff --git a/tasks.py b/tasks.py index d58be1a8..9c16bcc2 100644 --- a/tasks.py +++ b/tasks.py @@ -40,6 +40,7 @@ def towncrier_check(c): # NOQA """ Check towncrier files. """ output = io.StringIO() c.run("git branch -a --contains HEAD", out_stream=output) + print(output.getvalue()) skipped_branch_prefix = ["pull/", "develop", "master", "HEAD"] # cleanup branch names by removing PR-only names in local, remote and disconnected branches to ensure the current # (i.e. user defined) branch name is used