-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support non-default branch in sync-lockfiles workflow
- Loading branch information
1 parent
f2e99b6
commit 172288e
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -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 }} | ||
|
||
|
@@ -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 | ||
|