Skip to content

Format project

Format project #38

name: Format project
on: [workflow_dispatch]
jobs:
Update:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: n1hility/cancel-previous-runs@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Select latest Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Format project
run: |
brew install swiftformat
swiftformat .
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
delete-branch: true
branch: format-project-github-action
commit-message: "chore: format project"
title: Format project
body: Format project.
token: ${{ secrets.GITHUB_TOKEN }}