From 64eac08f38daf99c8824bccdf64439935997b6d1 Mon Sep 17 00:00:00 2001 From: khatraf Date: Thu, 31 Oct 2024 17:38:00 +0000 Subject: [PATCH 1/2] add workflow dispatch for manual triggers --- .github/workflows/format-code.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/format-code.yml b/.github/workflows/format-code.yml index e42257b..3de8042 100644 --- a/.github/workflows/format-code.yml +++ b/.github/workflows/format-code.yml @@ -1,5 +1,6 @@ name: "Format Code: ensure code formatting guidelines are met" on: + workflow_dispatch: pull_request: types: [opened, edited, reopened, synchronize] From bc6d6309bddece56740fd8f7431ef75ac2cfcba0 Mon Sep 17 00:00:00 2001 From: khatraf Date: Mon, 4 Nov 2024 08:33:10 +0000 Subject: [PATCH 2/2] temporarily remove to stop autoformatting --- .github/workflows/format-code.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/format-code.yml b/.github/workflows/format-code.yml index 3de8042..9f5382d 100644 --- a/.github/workflows/format-code.yml +++ b/.github/workflows/format-code.yml @@ -1,6 +1,7 @@ name: "Format Code: ensure code formatting guidelines are met" on: workflow_dispatch: + pull_request: types: [opened, edited, reopened, synchronize] @@ -13,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - uses: ministryofjustice/github-actions/code-formatter@ccf9e3a4a828df1ec741f6c8e6ed9d0acaef3490 # v18.5.0 + # - uses: ministryofjustice/github-actions/code-formatter@ccf9e3a4a828df1ec741f6c8e6ed9d0acaef3490 # v18.5.0 with: ignore-files: "README.md" env: