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 3b7103e
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/sync-from-upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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
- zenoh-backend-filesystem
- zenoh-backend-influxdb
- zenoh-backend-rocksdb
- zenoh-backend-s3
- zenoh-c
- zenoh-cpp
- zenoh-java
- zenoh-kotlin
- zenoh-pico
- zenoh-plugin-dds
- zenoh-plugin-mqtt
- zenoh-plugin-ros1
- zenoh-plugin-ros2dds
- zenoh-plugin-webserver
- zenoh-python

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 3b7103e

Please sign in to comment.