Fix PR-raising logic (#191)

This commit is contained in:
Patrick Stevens
2024-07-12 17:36:56 +01:00
committed by GitHub
parent 8f9af9af67
commit ebbe10ad81

View File

@@ -45,13 +45,13 @@ jobs:
run: python -m venv /tmp/venv && /tmp/venv/bin/python -m pip install -r .github/workflows/requirements.txt
- name: Create pull request
id: cpr
env:
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
BEARER_TOKEN: ${{ steps.generate-token.outputs.token }}
run: /tmp/venv/bin/python .github/workflows/commit.py
- name: Enable Pull Request Automerge
if: steps.cpr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v3
with:
token: ${{ steps.generate-token.outputs.token }}