-
Notifications
You must be signed in to change notification settings - Fork 37
57 lines (48 loc) · 1.68 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
51
52
53
54
55
56
57
name: Maintenance
on:
push:
branches: main
paths:
- "CommonLibSF/**"
workflow_dispatch:
concurrency:
group: maintenance
cancel-in-progress: true
jobs:
maintenance:
runs-on: ubuntu-latest
if: github.repository_owner == 'Starfield-Reverse-Engineering'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update Starfield.h
shell: pwsh
run: "& ${{ github.workspace }}/.github/make-directives.ps1 ${{ github.workspace }}/CommonLibSF"
- name: Run clang-format
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: Update vcpkg port version
id: versioning
shell: pwsh
run: "& ${{ github.workspace }}/.github/update-registry.ps1 ${{ github.workspace }}"
- name: Check failure
run: exit 1
if: ${{ steps.versioning.outputs.VCPKG_SUCCESS == 'false' }}
- name: Add & Commit
id: registry
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: "ci: maintenance `${{ steps.versioning.outputs.VCPKG_VERSION }}`"
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.VCPKG_HELPER_TOKEN }}
repository: ${{ github.repository_owner }}/Starfield-RE-vcpkg
event-type: update-event
client-payload: '{"sha": "${{ steps.registry.outputs.commit_long_sha }}", "vcpkg-version": "${{ steps.versioning.outputs.VCPKG_VERSION }}"}'