From 4799707bc34dcb54e538e10d927dd62fad80171b Mon Sep 17 00:00:00 2001 From: marked Date: Mon, 11 Nov 2024 20:08:42 +0100 Subject: [PATCH] fix: Manually run stylua, stylua-action is broken when trying to use on forgejo actions --- .forgejo/workflows/ci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 9de2333..a36aab6 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -56,9 +56,12 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Check code style - uses: https://github.com/JohnnyMorganz/stylua-action@v4 + # I cannot be assed to make the stylua action work, so I'll just install rokit and run stylua manually + - name: Install Rokit + uses: https://github.com/CompeyDev/setup-rokit@v0.1.2 with: token: ${{ secrets.githubtoken }} - version: v0.20.0 - args: --check src/ + + - name: Style + run: | + stylua --check src/