Added Rust category and a snippet #166
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: Checks snippets syntax | |
on: | |
pull_request: | |
paths: | |
- 'snippets/**' | |
jobs: | |
check-snippets: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Check if snippets are formated correctly | |
uses: int128/comment-action@v1 | |
with: | |
run: node utils/checkSnippetFormatting.js # Run the script located in the utils/ folder | |
post-on-failure: | | |
## :x: Snippet Format Error | |
${run.output} |