Skip to content

Commit

Permalink
[SL-ONLY] Add workflow to update the CSA branch daily (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs authored Jan 20, 2025
1 parent 755ad0b commit 9d41c14
Showing 1 changed file with 34 additions and 0 deletions.
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 }}

0 comments on commit 9d41c14

Please sign in to comment.