Skip to content

Commit

Permalink
Pulls the python-version file from the working-directory (#50)
Browse files Browse the repository at this point in the history
* Pulls the python-version file from the working-directory
* Passes cache as an input
* Installs the latest version of confmerge that has not been released as a tag
  • Loading branch information
mike-carey authored Feb 15, 2024
1 parent 4b3cec6 commit 8441ddc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11.7
8 changes: 6 additions & 2 deletions .github/workflows/render-task-definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ on:
description: "File containing the Python version to use. Example: .python-version"
type: string
default: ''
python-cache:
description: "Used to specify a package manager for caching in the default directory. Supported values: pip, pipenv, poetry."
type: string
required: false

# python requirements options
requirements-file:
Expand Down Expand Up @@ -116,8 +120,8 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
python-version-file: ${{ inputs.python-version-file }}
cache: pip
python-version-file: ${{ inputs.working-directory }}/${{ inputs.python-version-file }}
cache: ${{ inputs.python-cache }}

- name: 'If ssh private key provided, setup ssh agent'
id: ssh
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-render-task-definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
defaults.yml
data.yml
environment: TAG=${{ github.sha }}
python-version-file: .python-version
working-directory: .github/actions/test-render-task-definition
secrets:
aws-account-id: '1111111111'
Expand Down
2 changes: 1 addition & 1 deletion actions/render-jinjanator-template/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ runs:
steps:
- name: 'Install dependencies'
shell: bash
run: pip install jinjanator confmerge
run: pip install jinjanator 'confmerge @ git+https://github.com/aisbergg/python-confmerge@06ec81b41043cc76d5fc60085daf3cfed2b610b1' # no release was provided

- name: 'Render'
id: render
Expand Down

0 comments on commit 8441ddc

Please sign in to comment.