Skip to content

Commit

Permalink
feat: explicitly install poetry-plugin-export (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
gosuto-inzasheru committed Apr 7, 2024
1 parent 2cb76fa commit 34a3094
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ inputs:
without-hashes:
description: Export requirements.txt file without-hashes
required: false
default: 'true'
default: "true"
outfile-name:
description: Name of the output file
required: false
default: 'requirements.txt'
default: "requirements.txt"
args:
description: Additional args to pass to poetry
required: false
default: ''
default: ""
outputs:
custom-file-name:
description: Name of the output file
Expand All @@ -26,14 +26,18 @@ runs:
python -m pip install poetry
shell: bash
- run: |-
poetry self add poetry-plugin-export
shell: bash
- if: inputs.without-hashes == 'true'
run: |-
poetry export -f requirements.txt ${{ inputs.args }} --without-hashes --output ${{ inputs.outfile-name }}
poetry export -f requirements.txt ${{ inputs.args }} --without-hashes --output ${{ inputs.outfile-name }}
shell: bash

- if: inputs.without-hashes == 'false'
run: |-
poetry export -f requirements.txt ${{ inputs.args }} --output ${{ inputs.outfile-name }}
poetry export -f requirements.txt ${{ inputs.args }} --output ${{ inputs.outfile-name }}
shell: bash

branding:
Expand Down

0 comments on commit 34a3094

Please sign in to comment.