Skip to content

Commit 68a50f3

Browse files
committed
ci: add repository_dispatch trigger and link-back step for ros2_medkit
1 parent 48b9eae commit 68a50f3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [main]
66
push:
77
branches: [main]
8+
repository_dispatch:
9+
types: [ros2_medkit_updated]
810

911
jobs:
1012
lint:
@@ -33,6 +35,13 @@ jobs:
3335
docker-build:
3436
runs-on: ubuntu-24.04
3537
steps:
38+
- name: Show triggering source
39+
if: github.event_name == 'repository_dispatch'
40+
run: |
41+
echo "## Triggered by ros2_medkit" >> $GITHUB_STEP_SUMMARY
42+
echo "- Commit: \`${{ github.event.client_payload.sha }}\`" >> $GITHUB_STEP_SUMMARY
43+
echo "- Run: ${{ github.event.client_payload.run_url }}" >> $GITHUB_STEP_SUMMARY
44+
3645
- name: Checkout repository
3746
uses: actions/checkout@v4
3847

0 commit comments

Comments
 (0)