Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.
/ actions-old Public archive
forked from bltavares/actions

Latest commit

 

History

History
42 lines (31 loc) · 1 KB

README.md

File metadata and controls

42 lines (31 loc) · 1 KB

pwshfmt action

Validations on Push

This actions will check the formating of the Dockerfiles in the project, using Powershell-Beautiffier

Action name was changed just to provide a shorter version

Fixes on Pull Request review

This action provides automated fixes using Pull Request review comments.

If the comment starts with fix $action_name or fix pwshfmt, a new commit will be added to the branch with the automated fixes applied.

Supports: autofix on push

Example workflow

workflow "on push" {
  on = "push"
  resolves = ["pwshfmt"]
}

# Used for fix on review
# Don't enable if you plan using autofix on push
# Or there might be race conditions
workflow "on review" {
  resolves = ["pwshfmt"]
  on = "pull_request_review"
}

action "pwshfmt" {
  uses = "bltavares/actions/pwshfmt@master"
  # Enable autofix on push
  # args = ["autofix"]
  # Used for pushing changes for `fix` comments on review
  secrets = ["GITHUB_TOKEN"]
}