Skip to content

Commit

Permalink
Merge pull request #4 from henningWoehr/feature/add-poetry-python-ver…
Browse files Browse the repository at this point in the history
…sion-inputs

feat: add poetry & python version inputs
  • Loading branch information
henningWoehr authored Dec 1, 2022
2 parents 74e2f04 + 3c86b45 commit c4def21
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ inputs:
token:
description: "Github token to make authed request to GH API"
required: true
poetry-version:
description: "Version of poetry to install"
required: false
default: "1.1.14"
python-version:
description: "Version of python to install"
required: false
default: "3.10"

runs:
using: composite
Expand All @@ -15,17 +23,9 @@ runs:
- name: Setup poetry
id: setup-poetry
uses: henningwoehr/action-poetry-setup@v1

# - name: Set env
# run: |
# RELEASE_OLD=$(curl -sL https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/latest --header "Authorization: Bearer ${{ inputs.token }}" | jq -r ".tag_name")
# if [[ $RELEASE_OLD -eq null ]]
# then
# RELEASE_OLD=$(echo "0.0.0")
# fi
# echo "$RELEASE_OLD" >> $GITHUB_ENV
# echo "POETRY_NEW=$(poetry version --short)" >> $GITHUB_ENV
# shell: bash
with:
python-version: ${{ inputs.python-version }}
poetry-version: ${{ inputs.poetry-version }}

- name: validate version
run: |
Expand Down

0 comments on commit c4def21

Please sign in to comment.