Skip to content

Commit

Permalink
feat: add slack step
Browse files Browse the repository at this point in the history
  • Loading branch information
maancham committed Mar 6, 2024
1 parent c2e9a9a commit 0a2641d
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/periodic-audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ jobs:
- name: Run cargo audit
id: cargo-audit
run: |
cargo audit || true
AUDIT_OUTPUT=$(cargo audit) || true
echo "results=AUDIT_OUTPUT" >> GITHUB_OUTPUT
# audit_output=$(cargo audit)
# echo "trimmed_results=audit_output" >> GITHUB_OUTPUT

# - name: Post to Slack channel
# id: slack
# uses: slackapi/[email protected]
# with:
# channel-id: 'C06N3BKMA5A'
# slack-message: "Cargo Audit Results for: $(date '+%Y-%m-%d')\n${{ steps.cargo-audit.outputs.trimmed_results }}"
# env:
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
- name: Post to Slack channel
id: slack
uses: slackapi/[email protected]
with:
channel-id: 'C06N3BKMA5A'
slack-message: "Cargo Audit Results for: $(date '+%Y-%m-%d')\n${{ steps.cargo-audit.outputs.results }}"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 0a2641d

Please sign in to comment.