Files
discordeno/.github/workflows/lint.yml
2021-04-13 10:23:38 +04:00

20 lines
760 B
YAML

name: Lint
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@main
- name: Run fmt script
run: deno fmt
- name: Commit formatted files
run: |
git config --global user.email ${{ github.actor }}@users.noreply.github.com
git config --global user.name ${{ github.actor }}
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit --all --allow-empty-message --message "" || echo "No changes"
git push
- name: Run lint script
run: deno lint src/** test/** --unstable --ignore=./src/types,./src/interactions/types