We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbf43f6 commit ad4e00dCopy full SHA for ad4e00d
1 file changed
.github/workflows/build-agent-splunk.yml
@@ -50,9 +50,15 @@ jobs:
50
with:
51
name: agent-splunk
52
- 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
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: |
+ TAG="${{ steps.version.outputs.tag }}"
+ if gh release view "$TAG" > /dev/null 2>&1; then
+ 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