Skip to content

Add slapr workflow for automatic slack emoji addition #2

Add slapr workflow for automatic slack emoji addition

Add slapr workflow for automatic slack emoji addition #2

Workflow file for this run

---
name: Slack emoji PR updates
on:
pull_request_review:
types: [submitted]
pull_request:
types: [closed]
jobs:
run_slapr_datadog_agent:
runs-on: ubuntu-latest
strategy:
matrix:
channel_variables:
- SLACK_AGENT_PLATFORM_ID
- SLACK_AGENT_PLATFORM_REVIEWS_ID
steps:
- uses: DataDog/slapr@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
SLACK_CHANNEL_ID: "${{ secrets.[matrix.channel_variables] }}"

Check failure on line 21 in .github/workflows/slapr.yml

View workflow run for this annotation

GitHub Actions / Slack emoji PR updates

Invalid workflow file

The workflow is not valid. .github/workflows/slapr.yml (Line: 21, Col: 29): Unexpected symbol: '['. Located at position 9 within expression: secrets.[matrix.channel_variables]
SLACK_API_TOKEN: "${{ secrets.SLACK_API_TOKEN }}"
SLAPR_BOT_USER_ID: "${{ secrets.SLAPR_BOT_USER_ID }}"
SLAPR_EMOJI_REVIEW_STARTED: "review_started"
SLAPR_EMOJI_APPROVED: "approved2"
SLAPR_EMOJI_CHANGES_REQUESTED: "changes_requested"
SLAPR_EMOJI_MERGED: "merged"
SLAPR_EMOJI_CLOSED: "closed"