Skip to content

feat: EffectSetting, AlchemyItem, EnchantmentItem (#225) #220

feat: EffectSetting, AlchemyItem, EnchantmentItem (#225)

feat: EffectSetting, AlchemyItem, EnchantmentItem (#225) #220

Workflow file for this run

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 }}"}'