From 1c625086d775c86dda0a88eec311d9cf41387337 Mon Sep 17 00:00:00 2001 From: C4 Patino Date: Sat, 15 Feb 2025 12:56:45 -0600 Subject: [PATCH] chore: updating github workflows to use new centralized schema --- .github/workflows/format.yml | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 611e830..a2084c5 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -1,4 +1,4 @@ -name: stylua +name: ci on: push: @@ -9,27 +9,11 @@ on: branches: ["*"] workflow_dispatch: +permissions: + contents: write + jobs: format: - runs-on: [self-hosted] - permissions: - contents: write - 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] - + uses: c4patino/actions/.github/workflows/format.yml@main + with: + language: lua