forked from suzuki-shunsuke/github-action-format
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yaml
More file actions
29 lines (29 loc) · 808 Bytes
/
action.yaml
File metadata and controls
29 lines (29 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: terraform fmt
description: terraform fmt
inputs:
github_token:
description: 'GitHub Access Token'
required: false
default: ${{ github.token }}
command:
description: 'command to format code'
required: true
commit_message:
description: 'commit message'
required: true
working_directory:
description: working directory
required: false
default: ""
runs:
using: composite
steps:
- run: bash ${{ github.action_path }}/main.sh
working-directory: ${{ inputs.working_directory }}
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
ROOT_DIR: ${{ github.workspace }}
INPUT_COMMAND: ${{ inputs.command }}
INPUT_COMMIT_MESSAGE: ${{ inputs.commit_message }}
EVENT_NAME: ${{ github.event_name }}