Skip to content

Commit 9d41c14

Browse files
[SL-ONLY] Add workflow to update the CSA branch daily (#222)
1 parent 755ad0b commit 9d41c14

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Daily Sync of the csa branch
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
schedule:
8+
- cron: "0 0 * * *" # Runs once a day at midnight
9+
10+
jobs:
11+
sync:
12+
if: github.ref == 'refs/heads/main'
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout matter_sdk::csa branch
17+
uses: actions/checkout@v2
18+
with:
19+
repository: SiliconLabsSoftware/matter_sdk
20+
ref: csa
21+
22+
- name: Add CSA repository remote
23+
run:
24+
git remote add upstream
25+
https://github.com/project-chip/connectedhomeip.git
26+
27+
- name: Update the csa branch locally
28+
run: git pull upstream master
29+
30+
- name: Push the update csa branch to the remote
31+
run: |
32+
git push origin csa
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)