refactor: drop jinja2-ansible-filters
and reimplement Jinja2 filters
#233
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: autofix.ci # needed to securely identify the workflow | |
on: | |
pull_request: | |
push: | |
branches: ["master"] | |
permissions: | |
contents: read | |
jobs: | |
autofix: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Install Nix and set up Cachix | |
- uses: cachix/install-nix-action@v30 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- uses: cachix/cachix-action@v15 | |
with: | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
extraPullNames: devenv | |
name: copier | |
pushFilter: (-source$|nixpkgs\.tar\.gz$) | |
# Autoformat and try to push back changes | |
- run: nix develop --impure -c pre-commit run -a --show-diff-on-failure | |
continue-on-error: true | |
# HACK https://github.com/autofix-ci/action/pull/15 | |
- run: nix develop --impure -c pre-commit uninstall -t pre-commit -t commit-msg | |
- uses: autofix-ci/[email protected] | |
with: | |
commit-message: "style: autoformat with pre-commit" |