Skip to content

Commit

Permalink
fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
lyleschemmerling committed Nov 22, 2024
1 parent cf3a796 commit ebecce7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/contentcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
- name: Authenticate GitHub CLI
run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token

- name: Set Pull Request Number
run: echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV

- name: NPM Install
run: |
cd astro
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/lint-recent-files.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

# Get the list of changed files in the pull request
changed_files=$(gh pr view "${{ github.event.pull_request.number }}" --json files --jq '.files[].path')
changed_files=$(gh pr view "$PR_NUMBER" --json files --jq '.files[].path')

# Filter the files to match the specified patterns and directory
files_to_check=$(echo "$changed_files" | grep -E '^astro/src/.*\.(js|mjs|cjs|ts|md|mdx)$' | sed 's|^astro/||')
Expand Down

0 comments on commit ebecce7

Please sign in to comment.