Skip to content

Commit

Permalink
standard/technical/deployment: Be agnostic as to requirements managem…
Browse files Browse the repository at this point in the history
…ent tool. ci: Add pre-commit job to automerge workflow, for consistency.
  • Loading branch information
jpmckinney committed Sep 10, 2024
1 parent ccaae6c commit 5cd4e53
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }}
precommit:
if: ${{ github.event.pull_request.user.login == 'pre-commit-ci[bot]' }}
runs-on: ubuntu-latest
steps:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr review --approve ${{ github.event.pull_request.html_url }}
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }}
7 changes: 1 addition & 6 deletions docs/standard/technical/deployment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,7 @@ Update and deploy the Data Review Tool

This is the cove-ocds repository for OCDS, and cove-oc4ids for OC4IDS.

- Upgrade the requirements to use the new version of the CoVE library

.. code-block:: shell
pip-compile -P libcoveocds; pip-compile requirements_dev.in
- Upgrade the requirements to use the new version of the CoVE library (``libcoveocds`` or ``libcoveoc4ids``).
- Update the URL paths in `settings.py <https://github.com/open-contracting/cove-ocds/blob/main/cove_project/settings.py>`__ (*only in cove-ocds*)
- Make sure all tests pass
- `Deploy the app <https://ocdsdeploy.readthedocs.io/en/latest/deploy/deploy.html>`__
Expand Down

0 comments on commit 5cd4e53

Please sign in to comment.