-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
24 additions
and
10 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Sync Cargo lockfile with Zenoh's dependants | ||
name: Sync Cargo lockfiles | ||
|
||
on: | ||
schedule: | ||
|
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 |
---|---|---|
|
@@ -3,6 +3,10 @@ name: Update release project | |
on: | ||
issues: | ||
types: [opened, edited, labeled] | ||
pull_request_target: | ||
types: [closed] | ||
branches: | ||
- main | ||
workflow_call: | ||
|
||
defaults: | ||
|
@@ -46,7 +50,8 @@ jobs: | |
core.info(`Using release project ${result}`) | ||
return result; | ||
- name: Is the issue author a contributor? | ||
- if: ${{ github.event_name == 'issues' }} | ||
name: Is the issue author a contributor? | ||
id: author-is-contributor | ||
uses: actions/github-script@v7 | ||
with: | ||
|
@@ -67,10 +72,17 @@ jobs: | |
core.info(`Is the issue author ${login} a contributor? ${result}`); | ||
return result; | ||
- if: ${{ steps.author-is-contributor.outputs.result == 'true' }} | ||
- if: ${{ github.event_name == 'issues' && steps.author-is-contributor.outputs.result == 'true' }} | ||
name: Add issue to the release project if it has a release label | ||
uses: actions/[email protected] | ||
with: | ||
github-token: ${{ secrets.BOT_TOKEN_WORKFLOW }} | ||
project-url: ${{ steps.get-project-url.outputs.result }} | ||
labeled: release | ||
|
||
- if: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.merged == 'true' }} | ||
name: Add pull request to the release project | ||
uses: actions/[email protected] | ||
with: | ||
github-token: ${{ secrets.BOT_TOKEN_WORKFLOW }} | ||
project-url: ${{ steps.get-project-url.outputs.result }} |
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