Skip to content

Commit bc070e9

Browse files
committed
Added an example workitem to the build info
1 parent 8f92799 commit bc070e9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/maven.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,12 @@ jobs:
8181
\"VcsType\": \"Git\",
8282
\"VcsRoot\": \"https://github.com/OctopusSamples/RandomQuotes-Java\",
8383
\"Commits\":
84-
[{\"Id\":\"${{ github.sha }}\", \"LinkUrl\":\"https://github.com/OctopusSamples/RandomQuotes-Java/commit/${{ github.sha }}\", \"Comment\": \"${{ github.event.head_commit.message }}\"}]
84+
[{\"Id\":\"${{ github.sha }}\", \"LinkUrl\":\"https://github.com/OctopusSamples/RandomQuotes-Java/commit/${{ github.sha }}\", \"Comment\": \"${{ github.event.head_commit.message }}\"}],
85+
\"WorkItems\":
86+
[{\"Id"\: \"2\", \"LinkUrl\": \"https://github.com/OctopusSamples/RandomQuotes-Java/issues/2\", \"Source\": \"GitHub\", \"Description\": \"Add workitems to the github workflow build info JSON file\"}]
8587
}" > dockerbuildinfo.json; cat dockerbuildinfo.json
8688
87-
- name: Push Build Info Package
89+
- name: Push Build Info
8890
run: >-
8991
octo build-information
9092
--space=${{ secrets.OCTOPUS_SERVER_SPACE}}

0 commit comments

Comments
 (0)