git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2] ci: fix inconsistent indentation

From
AGAdrian via GitGitGadget <gitgitgadget@gmail.com>
Date
Aug 21, 2020, 09:27 UTC
Message-ID
<pull.823.v2.git.git.1598002046754.gitgitgadget@gmail.com>
In-Reply-To
<pull.823.git.git.1597048659983.gitgitgadget@gmail.com>
From: Adrian Moennich <adrian@planetcoding.net>

While YAML allows different indentation styles as long as each block is consistent, it is rather unusual to mix different indentations in a single file. Therefor I unified the file to use two-space indentation everywhere.

Signed-off-by: Adrian Moennich <adrian@planetcoding.net>
---
    Fix inconsistent yaml indentation
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-823%2FThiefMaster%2Fpatch-1-v2
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-823/ThiefMaster/patch-1-v2
Pull-Request: https://github.com/git/git/pull/823
Range-diff vs v1:
 1:  5301e3842e ! 1:  d398122a6a ci: fix inconsistent indentation
     @@ Metadata
       ## Commit message ##
          ci: fix inconsistent indentation
      
     +    While YAML allows different indentation styles as long as each block is
     +    consistent, it is rather unusual to mix different indentations in a
     +    single file.  Therefor I unified the file to use two-space indentation
     +    everywhere.
     +
          Signed-off-by: Adrian Moennich <adrian@planetcoding.net>
      
       ## .github/workflows/main.yml ##
 .github/workflows/main.yml | 56 +++++++++++++++++++-------------------
 1 file changed, 28 insertions(+), 28 deletions(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 44e0fe5839..30425404eb 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -7,34 +7,34 @@ env:
 
 jobs:
   ci-config:
-      runs-on: ubuntu-latest
-      outputs:
-        enabled: ${{ steps.check-ref.outputs.enabled }}
-      steps:
-        - name: try to clone ci-config branch
-          continue-on-error: true
-          run: |
-            git -c protocol.version=2 clone \
-              --no-tags \
-              --single-branch \
-              -b ci-config \
-              --depth 1 \
-              --no-checkout \
-              --filter=blob:none \
-              https://github.com/${{ github.repository }} \
-              config-repo &&
-              cd config-repo &&
-              git checkout HEAD -- ci/config
-        - id: check-ref
-          name: check whether CI is enabled for ref
-          run: |
-            enabled=yes
-            if test -x config-repo/ci/config/allow-ref &&
-               ! config-repo/ci/config/allow-ref '${{ github.ref }}'
-            then
-              enabled=no
-            fi
-            echo "::set-output name=enabled::$enabled"
+    runs-on: ubuntu-latest
+    outputs:
+      enabled: ${{ steps.check-ref.outputs.enabled }}
+    steps:
+      - name: try to clone ci-config branch
+        continue-on-error: true
+        run: |
+          git -c protocol.version=2 clone \
+            --no-tags \
+            --single-branch \
+            -b ci-config \
+            --depth 1 \
+            --no-checkout \
+            --filter=blob:none \
+            https://github.com/${{ github.repository }} \
+            config-repo &&
+            cd config-repo &&
+            git checkout HEAD -- ci/config
+      - id: check-ref
+        name: check whether CI is enabled for ref
+        run: |
+          enabled=yes
+          if test -x config-repo/ci/config/allow-ref &&
+             ! config-repo/ci/config/allow-ref '${{ github.ref }}'
+          then
+            enabled=no
+          fi
+          echo "::set-output name=enabled::$enabled"
 
   windows-build:
     needs: ci-config

base-commit: 675a4aaf3b226c0089108221b96559e0baae5de9
-- 
gitgitgadget
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “ci: fix inconsistent indentation”
  1. ci: fix inconsistent indentationAdrian via GitGitGadget, Aug 10, 2020
  2. Junio C HamanoAug 10, 2020
  3. ci: fix inconsistent indentationAdrian via GitGitGadget, Aug 21, 2020
  4. Junio C HamanoAug 21, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.