From 1a44def51de2021e9fc1c47e643e4d13cf0e90f9 Mon Sep 17 00:00:00 2001 From: nefrathenrici Date: Tue, 19 Mar 2024 16:54:34 -0700 Subject: [PATCH] test commit --- .github/workflows/yaml_format.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/yaml_format.yml b/.github/workflows/yaml_format.yml index 24e996c43ea..7205246ced9 100644 --- a/.github/workflows/yaml_format.yml +++ b/.github/workflows/yaml_format.yml @@ -21,6 +21,12 @@ jobs: go install github.com/google/yamlfmt/cmd/yamlfmt@latest - name: Format YAML files run: yamlfmt config - - name: Check formatting diff + - name: Add formatting changes run: | - git diff --color=always --exit-code + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "GitHub Actions" + git add . + git commit -m "Automatic YAML formatting" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Access token with push permissions +