This repository has been archived on 2025-11-04. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
days-since/.github/workflows/format.yml

35 lines
793 B
YAML

name: prettier
on:
push:
branches: ["main"]
tags: ["v*.*.*"]
pull_request:
types: [opened, reopened, synchronize]
branches: ["*"]
workflow_dispatch:
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#js-dev"
- name: Format all files
run: pnpm run format:write
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5.0.1
with:
commit_message: |
Autoformatting with prettier
[skip ci]