feat: add support for separate runtime config in json & yaml formats #15164
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: [main] | |
types: [opened, reopened, synchronize, labeled] | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Run Formatter and Lint Check | |
runs-on: blacksmith-4vcpu-ubuntu-2204 | |
permissions: | |
pull-requests: write | |
contents: write | |
env: | |
LINT_MODE: "${{ contains(github.event.pull_request.labels.*.name, 'ci: lint') && 'fix' || 'check' }}" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: useblacksmith/setup-node@v5 | |
with: | |
node-version: "20.11.0" | |
- name: Install Prettier | |
run: npm install --global prettier | |
- name: Install Stable Toolchain | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: Run Lint Script | |
run: ./lint.sh --mode=$LINT_MODE | |
- name: Commit and push if changed | |
if: env.LINT_MODE == 'fix' | |
uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c |