Skip to content

Commit

Permalink
ci(.github/workflows/autofix.yml): use autofix.ci (#1102)
Browse files Browse the repository at this point in the history
* ci(.github/workflows/autofix.yml): use autofix.ci

* chore(.markdownlint-cli2.jsonc): break format for debug

* ci(.github/workflows/autofix.yml): use commitlint compatible commit message

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
risu729 and autofix-ci[bot] authored Dec 17, 2024
1 parent a3fa4e0 commit 9cb7f21
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# name must be autofix.ci for security reasons
# ref: https://autofix.ci/security
name: autofix.ci

on:
pull_request:
branches:
- main
workflow_dispatch:

permissions: {}

defaults:
run:
shell: bash

jobs:
autofix:
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions:
contents: read # for checkout

steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Install mise
uses: jdx/mise-action@5bb8f8c1911837cf42064e6490e7634fc842ee7e # v2.1.8
with:
version: 2024.12.8
cache_save: ${{ github.ref_name == 'main' }}
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Run autofix
run: mise run check

- name: autofix.ci
uses: autofix-ci/action@2891949f3779a1cafafae1523058501de3d4e944 # v1.3.1
with:
commit-message: 'ci: apply automated fixes'

0 comments on commit 9cb7f21

Please sign in to comment.