File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 with :
3636 script : |
3737 const { owner, repo } = context.repo;
38- const syncBranchName = `sync-main-to-next-${Date.now() }`;
38+ const syncBranchName = `sync-main-to-next-${context.runId }`;
3939
4040 try {
4141 // Get the latest commit from main branch
Original file line number Diff line number Diff line change @@ -15,7 +15,12 @@ if ! command -v actionlint &> /dev/null; then
1515fi
1616
1717# Lint all workflow files
18- if actionlint .github/workflows/* .{yml,yaml}; then
18+ WORKFLOW_FILES=$( find .github/workflows -type f \( -name " *.yml" -o -name " *.yaml" \) )
19+ if [ -z " $WORKFLOW_FILES " ]; then
20+ echo " ℹ️ No workflow files found to lint."
21+ exit 0
22+ fi
23+ if actionlint $WORKFLOW_FILES ; then
1924 echo " ✅ All workflows are valid!"
2025else
2126 echo " ❌ Workflow linting failed"
You can’t perform that action at this time.
0 commit comments