Skip to content

Commit

Permalink
refactor: workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirdEyeSqueegee committed Sep 8, 2023
1 parent 2249eb6 commit 9f310b4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint_pr_title.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# https://github.com/amannn/action-semantic-pull-request
name: "Lint PR against Conventional Commits"
name: Lint PR against Conventional Commits

on:
pull_request_target:
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/maintenance.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
name: "Maintainance"
name: Maintenance

on:
push:
branches: [main]
branches: main
paths:
- ".github/workflows/*.yml"
- "CommonLibSF/**"

jobs:
maintainance:
maintenance:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Update Starfield.h
shell: pwsh
run: "& ${{ github.workspace }}/.github/make-directives.ps1 ${{ github.workspace }}/CommonLibSF"

- name: Enforce style formatting
- name: Run clang-format
uses: DoozyX/[email protected]
with:
source: "."
Expand All @@ -27,10 +22,9 @@ jobs:
clangFormatVersion: 16
inplace: True

- name: Prettier
uses: actionsx/prettier@v3
with:
args: --write "${{ github.workspace }}/.github/workflows/*.yml" "${{ github.workspace }}/CommonLibSF/*.json"
- name: Update Starfield.h
shell: pwsh
run: "& ${{ github.workspace }}/.github/make-directives.ps1 ${{ github.workspace }}/CommonLibSF"

- name: Update vcpkg version-date
id: versioning
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Prettier

on:
push:
branches: main
paths:
- ".github/workflows/*.yml"

jobs:
maintainance:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Prettier
uses: actionsx/prettier@v3
with:
args: --write "${{ github.workspace }}/.github/workflows/*.yml" "${{ github.workspace }}/CommonLibSF/*.json"

0 comments on commit 9f310b4

Please sign in to comment.