Skip to content

Commit 89730d1

Browse files
Update editorconfig-check.yml
Signed-off-by: LUIZ HAMILTON ROBERTO DA SILVA <[email protected]>
1 parent 4f2c7bd commit 89730d1

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/editorconfig-check.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
paths:
77
- '.editorconfig'
88
- '**/.editorconfig'
9-
- '**/*.{ps1,vbs,hta,psm1,psd1,xml,json,jsonc,md,rst,txt,csv,log,sh,bash,bat,cmd,html,yml,yaml,toml,ini,conf,config,nuspec,csproj,reg,env,eslintrc,eslintrc.json,stylelintrc,prettierrc,prettierrc.json,lock}'
9+
- '**/*.{ps1,psm1,psd1,vbs,hta,xml,json,jsonc,yaml,yml,toml,md,rst,txt,csv,log,env,reg,html,config,nuspec,csproj,ini,conf,sh,bash,bat,cmd,eslintrc,eslintrc.json,stylelintrc,prettierrc,prettierrc.json,lock}'
1010

1111
pull_request:
1212
branches: [main, develop]
1313
paths:
1414
- '.editorconfig'
1515
- '**/.editorconfig'
16-
- '**/*.{ps1,vbs,hta,psm1,psd1,xml,json,jsonc,md,rst,txt,csv,log,sh,bash,bat,cmd,html,yml,yaml,toml,ini,conf,config,nuspec,csproj,reg,env,eslintrc,eslintrc.json,stylelintrc,prettierrc,prettierrc.json,lock}'
16+
- '**/*.{ps1,psm1,psd1,vbs,hta,xml,json,jsonc,yaml,yml,toml,md,rst,txt,csv,log,env,reg,html,config,nuspec,csproj,ini,conf,sh,bash,bat,cmd,eslintrc,eslintrc.json,stylelintrc,prettierrc,prettierrc.json,lock}'
1717

1818
workflow_dispatch:
1919

@@ -29,12 +29,19 @@ jobs:
2929
- name: 📥 Download EditorConfig Checker
3030
run: |
3131
wget -q https://github.com/editorconfig-checker/editorconfig-checker/releases/latest/download/ec-linux-amd64.tar.gz
32-
mkdir ec-checker
32+
mkdir -p ec-checker
3333
tar -xzf ec-linux-amd64.tar.gz -C ec-checker
34-
chmod +x ec-checker/ec-linux-amd64
35-
sudo mv ec-checker/ec-linux-amd64 /usr/local/bin/ec
34+
chmod +x ec-checker/ec || chmod +x ec-checker/ec-linux-amd64 || true
35+
if [ -f ec-checker/ec ]; then
36+
sudo mv ec-checker/ec /usr/local/bin/ec
37+
elif [ -f ec-checker/ec-linux-amd64 ]; then
38+
sudo mv ec-checker/ec-linux-amd64 /usr/local/bin/ec
39+
else
40+
echo "❌ Error: ec binary not found after extraction"
41+
exit 1
42+
fi
3643
3744
- name: ▶️ Run EditorConfig Checker
3845
run: |
3946
ec --version
40-
ec --disable-logs || true # Avoid failure on style warnings
47+
ec --disable-logs || true # Do not fail if stylistic violations exist

0 commit comments

Comments
 (0)