Skip to content

Commit

Permalink
Prevent slack send from failing release build (#2380)
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Martinez <[email protected]>
  • Loading branch information
Mpdreamz and v1v authored Jun 18, 2024
1 parent ae7fae7 commit 55b6171
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ jobs:
subject-path: "${{ github.workspace }}/${{ env.PREFIX_APM_PROFILER }}${{ steps.bootstrap.outputs.agent-version }}${{ env.SUFFIX_APM_PROFILER }}"

- name: Attach Profiler And Startup Hooks
continue-on-error: true #continue for now until we see it working in action
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.ref_name }} "${{ env.PREFIX_APM_AGENT }}${{ steps.bootstrap.outputs.agent-version }}${{ env.SUFFIX_APM_AGENT }}" "${{ env.PREFIX_APM_PROFILER }}${{ steps.bootstrap.outputs.agent-version }}${{ env.SUFFIX_APM_PROFILER }}"
- if: ${{ success() }}
uses: elastic/oblt-actions/slack/[email protected]
uses: elastic/oblt-actions/slack/send@v1
continue-on-error: true #continue for now until we see it working in action
with:
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel-id: ${{ env.SLACK_CHANNEL }}
Expand All @@ -114,7 +114,8 @@ jobs:
Release URL: (<https://github.com/elastic/apm-agent-dotnet/releases/tag/${{ github.ref_name }}|${{ github.ref_name }}>)
- if: ${{ failure() }}
uses: elastic/oblt-actions/slack/[email protected]
uses: elastic/oblt-actions/slack/send@v1
continue-on-error: true #continue for now until we see it working in action
with:
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel-id: ${{ env.SLACK_CHANNEL }}
Expand Down Expand Up @@ -154,7 +155,6 @@ jobs:
- name: Attach Profiler
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true #continue for now until we see it working in action
run: |
gh release upload ${{ github.ref_name }} "${{ env.PREFIX_ZIP_FILE }}${{ steps.bootstrap.outputs.agent-version }}${{ env.SUFFIX_ZIP_FILE }}"
Expand Down

0 comments on commit 55b6171

Please sign in to comment.