Skip to content

Commit

Permalink
Added branch ref to Dependabot (#949)
Browse files Browse the repository at this point in the history
* added branch ref

* fix grouping again

* change compile method

* fixed compile python version
  • Loading branch information
nevoodoo authored Sep 23, 2024
1 parent 516eafc commit 2a822ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 3 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

version: 2
updates:
- target-branch: "dev"
- package-ecosystem: "pip"
directory: "/"
schedule:
Expand All @@ -13,15 +14,13 @@ updates:
groups:
minor-and-patch:
patterns:
- "requirements.in"
- "requirements-dev.in"
- "*"
update-types:
- "minor"
- "patch"

major:
patterns:
- "requirements.in"
- "requirements-dev.in"
- "*"
update-types:
- "major"
12 changes: 7 additions & 5 deletions .github/workflows/compile_requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Compile Requirements with Docker
name: Compile Requirements

on:
pull_request:
Expand All @@ -14,20 +14,22 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }} # Checkout the branch from the pull request

- name: Run pip-compile in Docker
run: |
docker run --platform linux/amd64 \
-v ${{ github.workspace }}:/opt/metamist \
--workdir /opt/metamist \
--rm python:3.10-slim bash -c " \
--rm python:3.11-slim bash -c " \
pip install pip-tools && \
echo 'Installed pip-tools!'; \
echo 'Compiling from requirements.in'; \
pip-compile requirements.in > requirements.txt && \
pip-compile requirements.in && \
echo 'Compiling from requirements-dev.in'; \
pip-compile --output-file=requirements-dev.txt requirements-dev.in requirements.in"
pip-compile requirements-dev.in"
- name: Commit updated requirements files
run: |
Expand Down

0 comments on commit 2a822ce

Please sign in to comment.