Skip to content

Commit

Permalink
Use requirements in create-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mdellweg committed Aug 8, 2024
1 parent 8e9a233 commit 43c7795
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
jinja2
pyyaml
requests~=2.32.3
11 changes: 3 additions & 8 deletions templates/github/.github/workflows/create-branch.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ jobs:
steps:
{{ checkout(depth=0, path=plugin_name) | indent(6) }}

{{ checkout(repository="pulp/plugin_template", path="plugin_template") | indent(6) }}

{{ setup_python() | indent(6) }}

{{ install_python_deps(["bump2version", "jinja2", "pyyaml", "packaging", "requests"]) | indent(6) }}
{{ install_python_deps(["bump2version", "packaging", "-r", "plugin_template/requirements.txt"]) | indent(6) }}

{{ set_secrets(path=plugin_name) | indent(6) }}

Expand Down Expand Up @@ -57,13 +59,6 @@ jobs:
run: |
find CHANGES -type f -regex ".*\.\(bugfix\|doc\|feature\|misc\|deprecation\|removal\)" -exec git rm {} +

- name: Checkout plugin template
uses: actions/checkout@v4
with:
repository: pulp/plugin_template
path: plugin_template
fetch-depth: 0

- name: Update CI branches in template_config
working-directory: plugin_template
run: |
Expand Down
2 changes: 1 addition & 1 deletion templates/github/.github/workflows/update_ci.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

{{ setup_python() | indent(6) }}

{{ install_python_deps(["gitpython", "requests", "packaging", "jinja2", "pyyaml"]) | indent(6) }}
{{ install_python_deps(["gitpython", "packaging", "-r", "plugin_template/requirements.txt"]) | indent(6) }}

{{ configure_git() | indent(6) }}

Expand Down

0 comments on commit 43c7795

Please sign in to comment.