Skip to content

Commit

Permalink
feat: Support non-default branch in sync-lockfiles workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz committed Mar 6, 2024
1 parent f2e99b6 commit 172288e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/sync-lockfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
schedule:
- cron: "0 0 * * *" # At the end of every day
workflow_dispatch:
inputs:
branch:
type: string
description: The branch to sync across all depedant repositories. Defaults to the default branch on each repository
required: false

defaults:
run:
Expand All @@ -18,6 +23,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: eclipse-zenoh/zenoh
ref: ${{ inputs.branch }}

- name: Upload lockfile
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -51,6 +57,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: eclipse-zenoh/${{ matrix.dependant }}
ref: ${{ inputs.branch }}
submodules: true
token: ${{ secrets.BOT_TOKEN_WORKFLOW }}

Expand Down Expand Up @@ -92,6 +99,7 @@ jobs:
commit-message: "chore: Sync Cargo lockfile with Zenoh's"
committer: eclipse-zenoh-bot <[email protected]>
author: eclipse-zenoh-bot <[email protected]>
base: ${{ inputs.branch }}
branch: eclipse-zenoh-bot/sync-lockfile
delete-branch: true
labels: dependencies
Expand Down

0 comments on commit 172288e

Please sign in to comment.