Skip to content

ryohidaka/action-sh-format

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShellScript Formatter

GitHub Release Test Action License

A GitHub Action that formats shell scripts using shfmt.

Usage

on:
  push:
    branches:
      - main

jobs:
  format-shell-scripts:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - uses: ryohidaka/action-sh-format@v0.3.2
        with:
          path: "."
          indent: 4
          commit-user-name: "GitHub Actions"
          commit-user-email: "actions@github.com"
          commit-message: "chore: Format ShellScripts"
          dry-run: false

Inputs

Input Description Required Default
path Directory path to format shell scripts. .
indent Set the indentation level for shfmt. 4
commit-user-name Commit username. GitHub Actions
commit-user-email Commit email. actions@github.com
commit-message Commit message. chore: Format ShellScripts
dry-run If true, the commit and push steps will be skipped. false

License

This project is licensed under the MIT License - see the LICENSE file for details.