From 4ffb0163596eee878d63538d396356e3bf96ef9d Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Thu, 1 Sep 2022 19:17:59 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fixed=20pre-commit-autoupdate.ym?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pre-commit-autoupdate.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml index ad470ba..a2ff75d 100644 --- a/.github/workflows/pre-commit-autoupdate.yml +++ b/.github/workflows/pre-commit-autoupdate.yml @@ -16,25 +16,20 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - if: ${{ env.HAVE_GH_TOKEN == 'true' }} uses: actions/checkout@v3 - name: Setup Python - if: ${{ env.HAVE_GH_TOKEN == 'true' }} uses: actions/setup-python@v4.2.0 with: python-version: '3.x' - name: Install pre-commit - if: ${{ env.HAVE_GH_TOKEN == 'true' }} run: pip install pre-commit - name: Updated Hooks - if: ${{ env.HAVE_GH_TOKEN == 'true' }} run: pre-commit autoupdate - name: Create Pull Request - if: ${{ env.HAVE_GH_TOKEN == 'true' }} uses: peter-evans/create-pull-request@v4 with: token: $GH_TOKEN @@ -43,5 +38,3 @@ jobs: commit-message: ⬆️updated pre-commit hooks body: ✨Update versions of tools in pre-commit configs to latest version labels: pre-commit✨ -env: - HAVE_GH_TOKEN: ${{ secrets.GH_TOKEN != '' }}