Skip to content

Commit

Permalink
infra: ESLint fix & less intrusive PR rename (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
WarningImHack3r authored Apr 8, 2024
1 parent 5d334b1 commit c58fc6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pages-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ jobs:

- name: 🔧 Fix lint
if: failure() && needs.permissions-check.outputs.has-permissions == 'true' && (steps.svelte-format.outcome == 'failure' || steps.prettier-eslint.outcome == 'failure')
run: pnpm format
run: pnpm format && pnpm eslint --fix .

- name: 📤 Commit lint fixes
if: failure() && needs.permissions-check.outputs.has-permissions == 'true' && (steps.svelte-format.outcome == 'failure' || steps.prettier-eslint.outcome == 'failure')
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-title-changer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
pr-title-modifier:
name: PR Title Modifier
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'emeraldstudio-bot'
if: github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.user.login != 'renovate[bot]' && github.event.pull_request.user.login != 'emeraldstudio-bot'
permissions:
pull-requests: write

Expand All @@ -29,7 +29,7 @@ jobs:
- name: 📋 Count all changed files for this commit
id: infra-changed-files
run: |
count=$(git diff --name-only HEAD^ HEAD | grep -vE 'src/|static/|tailwind.config.*|package.json' | wc -l)
count=$(git diff --name-only HEAD^ HEAD | grep -E '.github/|.husky/|.gitignore|LICENSE|README.md' | wc -l)
if [ $count -gt 0 ]; then
echo "$count infrastructure files changed in the last commit"
echo "infra_changes=true" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit c58fc6a

Please sign in to comment.