chore: updating github workflows to use new centralized schema
This commit is contained in:
parent
b79f072ddd
commit
1c625086d7
1 changed files with 7 additions and 23 deletions
30
.github/workflows/format.yml
vendored
30
.github/workflows/format.yml
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
name: stylua
|
name: ci
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -9,27 +9,11 @@ on:
|
||||||
branches: ["*"]
|
branches: ["*"]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
format:
|
format:
|
||||||
runs-on: [self-hosted]
|
uses: c4patino/actions/.github/workflows/format.yml@main
|
||||||
permissions:
|
with:
|
||||||
contents: write
|
language: lua
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
- name: Activate nix-shell
|
|
||||||
uses: nicknovitski/nix-develop@v1.2.0
|
|
||||||
with:
|
|
||||||
arguments: "github:C4theBomb/nixos-config#lua-dev"
|
|
||||||
- name: Format all files
|
|
||||||
run: stylua .
|
|
||||||
- name: Commit changes
|
|
||||||
uses: stefanzweifel/git-auto-commit-action@v5.0.1
|
|
||||||
with:
|
|
||||||
commit_message: |
|
|
||||||
Autoformatting with stylua
|
|
||||||
|
|
||||||
[skip ci]
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue