-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SL-ONLY] Add workflow to update the CSA branch daily (#222)
- Loading branch information
1 parent
755ad0b
commit 9d41c14
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Daily Sync of the csa branch | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" # Runs once a day at midnight | ||
|
||
jobs: | ||
sync: | ||
if: github.ref == 'refs/heads/main' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout matter_sdk::csa branch | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: SiliconLabsSoftware/matter_sdk | ||
ref: csa | ||
|
||
- name: Add CSA repository remote | ||
run: | ||
git remote add upstream | ||
https://github.com/project-chip/connectedhomeip.git | ||
|
||
- name: Update the csa branch locally | ||
run: git pull upstream master | ||
|
||
- name: Push the update csa branch to the remote | ||
run: | | ||
git push origin csa | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |