build(deps): bump actions/github-script from 6 to 8 #1860
This file contains hidden or 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: Global configuration for formatting related jobs | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| merge_group: | |
| jobs: | |
| load-versions: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| rust-nightly: ${{ steps.versions.outputs.rust-nightly }} | |
| node-version: ${{ steps.versions.outputs.node-version }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| sparse-checkout: .github | |
| - name: Load versions | |
| id: versions | |
| uses: ./.github/actions/load-versions | |
| run_rust_formatting: | |
| name: Formatting Rust related code | |
| needs: ['load-versions'] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Use shared Rust toolchain setting up steps | |
| uses: ./.github/actions/toolchain-shared | |
| with: | |
| rust_toolchain_version: ${{ needs.load-versions.outputs.rust-nightly }} | |
| - uses: taiki-e/install-action@v2 | |
| with: | |
| tool: taplo | |
| - name: Check formatting related to Rust code | |
| run: make check-format | |
| run_markdown_formatting: | |
| name: Formatting Markdown files | |
| needs: ['load-versions'] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ needs.load-versions.outputs.node-version }} | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Check markdown formatting | |
| run: make check-format-md |