Skip to content

Commit ad4e00d

Browse files
committed
Modify build-agent-splunk workflow release step
Assisted By: claude-opus-4.6
1 parent dbf43f6 commit ad4e00d

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/build-agent-splunk.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,15 @@ jobs:
5050
with:
5151
name: agent-splunk
5252
- name: Create GitHub Release
53-
uses: softprops/action-gh-release@v2
54-
with:
55-
tag_name: ${{ steps.version.outputs.tag }}
56-
name: agent-splunk ${{ steps.version.outputs.tag }}
57-
generate_release_notes: true
58-
files: agent-splunk
53+
env:
54+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
run: |
56+
TAG="${{ steps.version.outputs.tag }}"
57+
if gh release view "$TAG" > /dev/null 2>&1; then
58+
gh release upload "$TAG" agent-splunk --clobber
59+
else
60+
gh release create "$TAG" \
61+
--title "agent-splunk $TAG" \
62+
--generate-notes \
63+
agent-splunk
64+
fi

0 commit comments

Comments
 (0)