We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cb5ef4 commit 95a7437Copy full SHA for 95a7437
1 file changed
scripts/lint-workflows.sh
@@ -0,0 +1,23 @@
1
+#!/bin/bash
2
+
3
+# GitHub Actions Workflow Linter Script
4
+# This script lints all workflow files using actionlint
5
6
+set -euo pipefail
7
8
+echo "🔍 Linting GitHub Actions workflows..."
9
10
+# Check if actionlint is installed
11
+if ! command -v actionlint &> /dev/null; then
12
+ echo "❌ actionlint is not installed"
13
+ echo "📦 Install with: brew install actionlint"
14
+ exit 1
15
+fi
16
17
+# Lint all workflow files
18
+if actionlint .github/workflows/*.{yml,yaml}; then
19
+ echo "✅ All workflows are valid!"
20
+else
21
+ echo "❌ Workflow linting failed"
22
23
0 commit comments