Skip to content

force disable firewall #184

force disable firewall

force disable firewall #184

Workflow file for this run

name: Format with alejandra
on:
push:
paths:
- "**.nix"
workflow_dispatch:
jobs:
format:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check Out Repository
uses: actions/checkout@v4
- name: Set Up Nix
uses: cachix/install-nix-action@master
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Check for formatting issues with alejandra
uses: workflow/nix-shell-action@main
continue-on-error: true
with:
packages: alejandra
script: |
alejandra . -c
- name: Format code with alejandra
uses: workflow/nix-shell-action@main
with:
packages: alejandra
script: |
alejandra .
# Import GPG key for signing commits
- name: Import GPG key
id: import-gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "format with alejandra"
commit_author: "${{ steps.import-gpg.outputs.name }} <${{ steps.import-gpg.outputs.email }}>"
commit_user_name: ${{ steps.import-gpg.outputs.name }}
commit_user_email: ${{ steps.import-gpg.outputs.email }}