From 6ef274c036eb2d0b2b863452e90fa6ec76f5b7b0 Mon Sep 17 00:00:00 2001 From: ayntee Date: Tue, 13 Apr 2021 10:03:15 +0400 Subject: [PATCH] ci(lint): use github context instead --- .github/workflows/lint.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index afc431674..0709d7e26 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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