Skip to content

Commit 3527999

Browse files
committed
dependabot update
1 parent fafed95 commit 3527999

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/trigger.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Submodule and dependabot Update
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
trigger-submodule:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Trigger update in Demo Repository
16+
env:
17+
OTTO_TOKEN: ${{ secrets.GH_UPDATE_PACKAGE_OTTO }}
18+
RELEASE_TAG: "${{ github.event.release.tag_name }}"
19+
run: |
20+
echo "${{ github.event.release.tag_name }}"
21+
curl -X POST \
22+
-H "Authorization: token ${{ secrets.GH_UPDATE_PACKAGE_OTTO }}" \
23+
-H "Accept: application/vnd.github.v3+json" \
24+
https://api.github.com/repos/opsmill/infrahub-demo-dc-fabric-develop/dispatches \
25+
-d "{\"event_type\":\"trigger-dependabot-update\", \"client_payload\": {\"version\": \"${{ github.event.release.tag_name }}\"}}"

0 commit comments

Comments
 (0)