ci(lint): use github context instead

This commit is contained in:
ayntee
2021-04-13 10:03:15 +04:00
parent 519a02b357
commit 6ef274c036

View File

@@ -10,13 +10,10 @@ jobs:
run: deno fmt
- name: Commit formatted files
run: |
git config --global user.email $ACTOR@users.noreply.github.com
git config --global user.name $ACTOR
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$REPO
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 --message "Format files"
git push
env:
ACTOR: ${{ secrets.GITHUB_ACTOR }}
REPO: ${{ secrets.GITHUB_REPOSITORY }}
- name: Run lint script
run: deno lint src/** test/** --unstable --ignore=./src/types,./src/interactions/types