Skip to content

Commit

Permalink
Add workflow to sync main branches from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomatsubara committed May 16, 2024
1 parent 811bfbb commit 79488bb
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/sync-from-upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Sync from upstream

on:
schedule:
- cron: "0 */2 * * *" # Run every 2 hours

workflow_dispatch:

defaults:
run:
shell: bash

jobs:
sync:
name: Sync ${{matrix.dependant}} from upstream
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
dependant:
- zenoh-c
- zenoh-python
- zenoh-java
- zenoh-kotlin
- zenoh-plugin-dds
- zenoh-plugin-mqtt
- zenoh-plugin-ros1
- zenoh-plugin-ros2dds
- zenoh-plugin-webserver
- zenoh-backend-filesystem
- zenoh-backend-influxdb
- zenoh-backend-rocksdb
- zenoh-backend-s3
steps:
- run: >
gh repo sync ZettaScaleLabs/${{matrix.dependant}} --force --source eclipse-zenoh/${{matrix.dependant}}
env:
GH_TOKEN: ${{ secrets.BOT_TOKEN_WORKFLOW }}

0 comments on commit 79488bb

Please sign in to comment.