File tree Expand file tree Collapse file tree 4 files changed +38
-79
lines changed
actions/format-issue-title Expand file tree Collapse file tree 4 files changed +38
-79
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Sync Main to Release
2+
3+ on :
4+ push :
5+ branches : [main]
6+ workflow_dispatch :
7+
8+ jobs :
9+ sync :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : write
13+ pull-requests : write
14+ steps :
15+ - uses : actions/checkout@v4
16+ with :
17+ fetch-depth : 0 # Required to compare branches
18+
19+ - name : Check for Code Differences
20+ id : diff_check
21+ run : |
22+ DIFF=$(git diff origin/release...origin/main --name-only)
23+ if [ -z "$DIFF" ]; then
24+ echo "No changes found between main and release. Skipping."
25+ echo "has_changes=false" >> $GITHUB_OUTPUT
26+ echo "## ⏭️ Sync Skipped" >> $GITHUB_STEP_SUMMARY
27+ echo "Main and Release are already in sync." >> $GITHUB_STEP_SUMMARY
28+ else
29+ echo "has_changes=true" >> $GITHUB_OUTPUT
30+ fi
31+
32+ - name : Run PR Logic
33+ if : steps.diff_check.outputs.has_changes == 'true'
34+ uses : recursivezero/action-club/.github/actions/release-pr@main
35+ with :
36+ # Use your PAT here if the standard token continues to fail
37+ github_token : ${{ secrets.PROJECT_PAT }}
Original file line number Diff line number Diff line change 11keshav
22mohta
3+ recursivezero
You can’t perform that action at this time.
0 commit comments