Skip to content

Commit 53ec108

Browse files
gingerbenwCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 95a7437 commit 53ec108

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/sync-main-to-next.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
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

scripts/lint-workflows.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ if ! command -v actionlint &> /dev/null; then
1515
fi
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!"
2025
else
2126
echo "❌ Workflow linting failed"

0 commit comments

Comments
 (0)