File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ name: Sync Upstream
2
2
on :
3
3
schedule :
4
4
- cron : ' 0 0 * * *' # Daily sync
5
- workflow_dispatch : # Manual trigger
5
+ workflow_dispatch :
6
+
7
+ permissions :
8
+ contents : write # Required for pushing changes
6
9
7
10
jobs :
8
11
sync :
@@ -11,14 +14,16 @@ jobs:
11
14
- name : Checkout
12
15
uses : actions/checkout@v4
13
16
with :
14
- token : ${{ secrets.PAT_TOKEN }} # Required for push access
15
- fetch-depth : 0
17
+ fetch-depth : 0 # Get full history
16
18
17
- - name : Sync upstream
19
+ - name : Configure git
18
20
run : |
19
21
git config user.name "StrandForge Bot"
20
22
git config user.email "bot@strandforge.ai"
21
23
git remote add upstream https://github.com/strands-agents/sdk-python.git
24
+
25
+ - name : Sync upstream
26
+ run : |
22
27
git fetch upstream
23
28
git checkout base-main
24
29
git merge upstream/main --no-edit
You can’t perform that action at this time.
0 commit comments