Skip to content

Commit 3479512

Browse files
Migrate to repository-dispatch action (#64)
* Migrate to repository-dispatch action
1 parent 4b8a044 commit 3479512

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/digma-release.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,22 @@ jobs:
3535
push: true
3636

3737
update-digma-ui:
38-
name: Update version in Digma UI
38+
name: Update Jaeger dependencies in Digma UI
3939
needs: [attach-release-asset, build-push-docker-image]
4040
runs-on: ubuntu-latest
4141
steps:
4242
- uses: actions/checkout@v4
4343
- name: Get Jaeger version
4444
run: echo "JAEGER_VERSION=$(jq -r '.version' jaeger.json)" >> $GITHUB_ENV
4545

46-
- name: Create PR in digma-ui
47-
run: |
48-
curl -X POST -H "Accept: application/vnd.github.v3+json" \
49-
-H "Authorization: token ${{ secrets.RELEASE_PAT }}" \
50-
https://api.github.com/repos/digma-ai/digma-ui/dispatches \
51-
-d '{
52-
"event_type": "update-jaeger",
53-
"client_payload": {
54-
"jaegerUIVersion": "'"${{ needs.build.outputs.version }}"'",
55-
"jaegerVersion": "'"${{ env.JAEGER_VERSION }}"'"
46+
- name: Dispatch event in digma-ui
47+
uses: peter-evans/repository-dispatch@v3
48+
with:
49+
token: ${{ secrets.RELEASE_PAT }}
50+
repository: digma-ai/digma-ui
51+
event-type: update-jaeger
52+
client-payload: |-
53+
{
54+
"jaegerUIVersion": "${{ needs.build.outputs.version }}",
55+
"jaegerVersion": "${{ env.JAEGER_VERSION }}"
5656
}
57-
}'

0 commit comments

Comments
 (0)