diff --git a/.github/workflows/lua-format-workflow.yml b/.github/workflows/lua-format-workflow.yml deleted file mode 100644 index 54fdbf3130e..00000000000 --- a/.github/workflows/lua-format-workflow.yml +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: Lua-format-workflow - -on: - workflow_run: - workflows: ["Lua-format"] - types: [completed] - -jobs: - on-failure: - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure' }} - steps: - - name: Set up Git - run: | - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "GitHub Actions" - - name: Actions checkout - uses: actions/checkout@v3 - with: - repository: ${{ github.event.workflow_run.head_repository }} - ref: ${{ github.event.workflow_run.head_sha }} - token: ${{ secrets.GITHUB_TOKEN }} - - - uses: JohnnyMorganz/stylua-action@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - version: latest - args: . - - - name: Run add and commit - uses: EndBug/add-and-commit@v9 - with: - author_name: GitHub Actions - author_email: github-actions[bot]@users.noreply.github.com - message: "Lua code format - (Stylua)" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}