mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-12 19:30:30 +02:00
Reworked YML config
This commit is contained in:
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2020 Conrad
|
Copyright (c) 2020 Conrad Großer
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
28
action.yml
28
action.yml
@@ -1,5 +1,5 @@
|
|||||||
name: "Prettier Action"
|
name: Prettier Action
|
||||||
description: "Automatically runs prettier on all your pull requests."
|
description: Automatically runs prettier on all your changes.
|
||||||
|
|
||||||
author: Conrad Großer <grosserconrad@gmail.com>
|
author: Conrad Großer <grosserconrad@gmail.com>
|
||||||
|
|
||||||
@@ -7,32 +7,26 @@ inputs:
|
|||||||
commit_message:
|
commit_message:
|
||||||
description: Commit message
|
description: Commit message
|
||||||
required: false
|
required: false
|
||||||
default: "Prettified Code!"
|
default: 'Prettified Code!'
|
||||||
commit_options:
|
commit_options:
|
||||||
description: Commit options
|
description: Commit options
|
||||||
required: false
|
required: false
|
||||||
file_pattern:
|
file_pattern:
|
||||||
description: File pattern used for "git add"
|
description: File pattern used for `git add`
|
||||||
required: false
|
required: false
|
||||||
default: "*"
|
default: '*'
|
||||||
prettier_options:
|
prettier_options:
|
||||||
description: Options for the 'prettier' command
|
description: Options for the `prettier` command
|
||||||
required: false
|
required: false
|
||||||
default: "--write **/*.js"
|
default: '--write **/*.js'
|
||||||
branch:
|
branch:
|
||||||
description: Branch which the changes are merged to
|
description: Branch which the changes are merged to
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "docker"
|
using: 'docker'
|
||||||
image: "Dockerfile"
|
image: 'Dockerfile'
|
||||||
args:
|
|
||||||
- ${{ inputs.commit_message }}
|
|
||||||
- ${{ inputs.commit_options }}
|
|
||||||
- ${{ inputs.file_pattern }}
|
|
||||||
- ${{ inputs.prettier_options }}
|
|
||||||
- ${{ inputs.branch }}
|
|
||||||
|
|
||||||
branding:
|
branding:
|
||||||
icon: "award"
|
icon: 'award'
|
||||||
color: "green"
|
color: 'green'
|
||||||
|
|||||||
Reference in New Issue
Block a user