Skip to content

Commit

Permalink
Add black_version to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanfoulis committed Jan 22, 2021
1 parent 692c0f5 commit 8af883a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
16 changes: 14 additions & 2 deletions action.yml
Expand Up @@ -6,9 +6,21 @@ inputs:
description: "Black input arguments."
required: false
default: ""
black_version:
description: 'Version of black to use. E.g "==20.8b1"'
required: false
default: ""
branding:
color: "black"
icon: "check-circle"
runs:
using: "docker"
image: "action/Dockerfile"
using: composite
steps:
- run:
pip install --upgrade --no-cache-dir black${{inputs.black_version}}
shell: bash
- id: run-black
run:
${{ github.action_path }}/action/entrypoint.sh ${{ inputs.configuration }} ${{
inputs.sortPaths }}
shell: bash
10 changes: 0 additions & 10 deletions action/Dockerfile

This file was deleted.

0 comments on commit 8af883a

Please sign in to comment.