Skip to content

Commit

Permalink
Attempt to fix newlines in Slack notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Oct 24, 2023
1 parent cda917b commit 4a724cc
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/alert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@ jobs:
PRIVATE_KEY: ${{ secrets.HYPOTHESIS_GITHUB_APP_PRIVATE_KEY }}
- name: Check for alerts
id: slack_message
run: dependabot-alerts hypothesis
run: |
{
echo 'SLACK_MESSAGE<<EOF'
dependabot-alerts hypothesis
echo EOF
} >> "$GITHUB_OUTPUT"
env:
GITHUB_TOKEN: ${{ steps.github_token.outputs.GITHUB_TOKEN }}
- name: Post to Slack
uses: slackapi/[email protected]
with:
channel-id: ${{ vars.SLACK_CHANNEL }}
slack-message: ${{ env.SLACK_MESSAGE }}
env:
SLACK_MESSAGE: ${{ steps.slack_message.outputs.SLACK_MESSAGE }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 4a724cc

Please sign in to comment.