From 79488bbd28f885d45549ae6705b0c4497a8b85a9 Mon Sep 17 00:00:00 2001 From: Diogo Mendes Matsubara Date: Thu, 16 May 2024 12:10:22 +0200 Subject: [PATCH] Add workflow to sync main branches from upstream --- .github/workflows/sync-from-upstream.yml | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/sync-from-upstream.yml diff --git a/.github/workflows/sync-from-upstream.yml b/.github/workflows/sync-from-upstream.yml new file mode 100644 index 0000000..f66bd94 --- /dev/null +++ b/.github/workflows/sync-from-upstream.yml @@ -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 }} \ No newline at end of file