From 6de89e4b7b0a0f72cf53e59a90bd22362088eb71 Mon Sep 17 00:00:00 2001 From: embeddedt <42941056+embeddedt@users.noreply.github.com> Date: Mon, 13 Dec 2021 08:55:36 -0500 Subject: [PATCH] ci remove formatting request workflow This approach is too risky and insecure in its current implementation. --- .github/workflows/handle_format_request.yml | 48 --------------------- 1 file changed, 48 deletions(-) delete mode 100644 .github/workflows/handle_format_request.yml diff --git a/.github/workflows/handle_format_request.yml b/.github/workflows/handle_format_request.yml deleted file mode 100644 index 157c0a6d4..000000000 --- a/.github/workflows/handle_format_request.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Reformat PR code -on: - issue_comment: - types: [created] - -jobs: - update-formatting: - continue-on-error: true - if: github.event.issue.user.login == 'embeddedt' - runs-on: ubuntu-latest - steps: - - uses: khan/pull-request-comment-trigger@bb03972cc9f423111f3b5a23fcc9fd32741acabb - if: success() - id: check-comment - with: - trigger: '@lvgl-bot format' - prefix_only: true - reaction: rocket - env: - GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' - - run: exit 1 - if: steps.check-comment.outputs.triggered == 'false' - - name: Install astyle - if: success() - run: | - sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse" - sudo apt-get update -y -qq - sudo apt-get install astyle - - uses: actions/checkout@v2 - if: success() - with: - token: ${{ secrets.LVGL_BOT_TOKEN }} - - name: Checkout PR - uses: dawidd6/action-checkout-pr@v1 - if: success() - with: - pr: ${{github.event.issue.number}} - token: ${{ secrets.LVGL_BOT_TOKEN }} - - name: Format code - run: python code-format.py - working-directory: scripts - - name: Commit changes - run: | - git config --global user.name 'lvgl-bot' - git config --global user.email 'lvgl-bot@users.noreply.github.com' - git config push.default upstream - git commit -am "style automatic formatting" - git push