Skip to content

Commit 014e675

Browse files
ci: push version to bom on publish
1 parent 01baed0 commit 014e675

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
release:
55
types:
66
- created
7-
workflow_dispatch:
87

98
jobs:
109
publish-artifacts:
@@ -24,5 +23,28 @@ jobs:
2423
ORG_GRADLE_PROJECT_maven_repo_url: ${{ secrets.HAR_REPO_URL }}
2524
ORG_GRADLE_PROJECT_maven_user: ${{ secrets.HAR_PUBLISH_USER }}
2625
ORG_GRADLE_PROJECT_maven_password: ${{ secrets.HAR_PUBLISH_TOKEN }}
26+
post-publish-artifacts:
27+
runs-on: ubuntu-24.04
28+
needs: [ publish-artifacts ]
29+
steps:
30+
- name: Get Token from Github App
31+
uses: tibdex/github-app-token@v2
32+
id: generate-token
33+
with:
34+
app_id: ${{ secrets.GH_CI_APP_ID }}
35+
private_key: ${{ secrets.GH_CI_APP_PRIVATE_KEY }}
36+
repositories: >-
37+
["hypertrace-bom"]
38+
- name: Auto upgrade BOM
39+
uses: peter-evans/repository-dispatch@v3
40+
with:
41+
token: ${{ steps.generate-token.outputs.token }}
42+
repository: hypertrace/hypertrace-bom
43+
event-type: upgrade-version
44+
client-payload: |
45+
{
46+
"repository": "${{ github.repository }}",
47+
"version": "${{ github.ref }}"
48+
}
2749
2850

0 commit comments

Comments
 (0)