Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tyirvine/unity-actions-autoformat
This action can be used to auto format the scripts in your Unity project! Making it easier to work with others with different formatting. TLDR: reduces merge conflicts!
https://github.com/tyirvine/unity-actions-autoformat
Last synced: about 1 month ago
JSON representation
This action can be used to auto format the scripts in your Unity project! Making it easier to work with others with different formatting. TLDR: reduces merge conflicts!
- Host: GitHub
- URL: https://github.com/tyirvine/unity-actions-autoformat
- Owner: tyirvine
- License: unlicense
- Created: 2021-02-24T21:20:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-20T02:31:08.000Z (almost 4 years ago)
- Last Synced: 2024-11-19T20:05:32.520Z (about 2 months ago)
- Language: Shell
- Size: 80.1 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unity Auto Format 🔎
This action can be used to auto format the scripts in your Unity project! Making it easier to work with others with different formatting. I'm active on Github so pull requests and issues are welcome!
This action is built on top of the work of others, so a big thank you to `andstor/[email protected]`, `andstor/[email protected]`, and @shiena for the inspiration!
Here's the original gist → https://gist.github.com/shiena/197f949bc513858a85883d5529730310
## Usage
```yaml
- name: Unity Auto Format
uses: tyirvine/[email protected]
with:
path: './Assets/Scripts/'
```
Check out [example-workflow.yml](example-workflow.yml) for a full example of this action in use!## What it does
It takes in the path, formats all the scripts, commits all the files, then pushes to the active branch.## Change Log
* March 19th 2021 - Turned workflow into a single shell script! Much easier to add in now.
* March 16th 2021 - For some reason the workflow was failing, likely due to a change in another action being used. I updated the workflow for reliability. It now relies on less Actions and instead just formats using `dotnet format ./pathToScripts --folder` right in the shell, then checks for changes, and commits & pushes if so.