Reworked YML config

This commit is contained in:
2020-02-18 07:34:38 +01:00
parent 26a255a4eb
commit 7224bd5fbf
2 changed files with 12 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
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
of this software and associated documentation files (the "Software"), to deal

View File

@@ -1,5 +1,5 @@
name: "Prettier Action"
description: "Automatically runs prettier on all your pull requests."
name: Prettier Action
description: Automatically runs prettier on all your changes.
author: Conrad Großer <grosserconrad@gmail.com>
@@ -7,32 +7,26 @@ inputs:
commit_message:
description: Commit message
required: false
default: "Prettified Code!"
default: 'Prettified Code!'
commit_options:
description: Commit options
required: false
file_pattern:
description: File pattern used for "git add"
description: File pattern used for `git add`
required: false
default: "*"
default: '*'
prettier_options:
description: Options for the 'prettier' command
description: Options for the `prettier` command
required: false
default: "--write **/*.js"
default: '--write **/*.js'
branch:
description: Branch which the changes are merged to
required: true
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.commit_message }}
- ${{ inputs.commit_options }}
- ${{ inputs.file_pattern }}
- ${{ inputs.prettier_options }}
- ${{ inputs.branch }}
using: 'docker'
image: 'Dockerfile'
branding:
icon: "award"
color: "green"
icon: 'award'
color: 'green'