-
Notifications
You must be signed in to change notification settings - Fork 37
50 lines (42 loc) · 1.41 KB
/
maintenance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: "Maintainance"
on:
push:
branches: [main]
paths:
- ".github/workflows/*.yml"
- "CommonLibSF/**"
jobs:
maintainance:
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
uses: DoozyX/[email protected]
with:
source: "."
exclude: "./docs"
extensions: "c,cc,cpp,cppm,cxx,h,hpp,hxx,inl,inc,ixx,mxx"
clangFormatVersion: 16
inplace: True
- name: Prettier
uses: actionsx/prettier@v3
with:
args: --write "${{ github.workspace }}/.github/workflows/*.yml" "${{ github.workspace }}/CommonLibSF/*.json}"
- name: Update vcpkg version-date
id: versioning
shell: pwsh
run: "& ${{ github.workspace }}/.github/update-registry.ps1 ${{ github.workspace }}"
- name: Check for success
run: exit 1
if: ${{ steps.versioning.outputs.VCPKG_SUCCESS == 'false' }}
- name: Check for commit
uses: EndBug/add-and-commit@v9
with:
author_name: maintenance
message: "ci: maintenance `${{ steps.versioning.outputs.VCPKG_VERSION }}`"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}