Skip to content

Commit 80202dd

Browse files
committed
update workflow for release pr
1 parent 670d4e8 commit 80202dd

File tree

4 files changed

+38
-79
lines changed

4 files changed

+38
-79
lines changed

.github/actions/format-issue-title/action.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/actions/format-issue-title/format.sh

Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
keshav
22
mohta
3+
recursivezero

0 commit comments

Comments
 (0)