Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SL-ONLY] Add workflow to update the CSA branch daily #222

Merged
merged 5 commits into from
Jan 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/silabs-update-csa.yaml
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 }}
Loading