Blog post: When Does Constrained Decoding Actually Help a Small VLM? #217
Workflow file for this run
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: Validate blog entries | |
| on: | |
| pull_request: | |
| defaults: | |
| run: | |
| working-directory: scripts | |
| jobs: | |
| validate-blog-entries: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # fetches all commits so we can check diffs | |
| - uses: denoland/setup-deno@v1 | |
| with: | |
| deno-version: v1.x | |
| - name: Get changed markdown files | |
| id: changed-files | |
| working-directory: . | |
| env: | |
| BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
| HEAD_SHA: ${{ github.sha }} | |
| run: | | |
| FILES=$(git diff --name-only --diff-filter=AM "$BASE_SHA" "$HEAD_SHA" -- '*.md' | tr '\n' ' ') | |
| echo "files=$FILES" >> $GITHUB_OUTPUT | |
| - name: Validate blog entries are listed in _blog.yml | |
| if: steps.changed-files.outputs.files != '' | |
| env: | |
| CHANGED_FILES: ${{ steps.changed-files.outputs.files }} | |
| run: deno run --allow-read ./validate-blog-entries.ts $CHANGED_FILES |