act10ns / slack

Slack messages for GitHub Action workflows, jobs and steps
https://github.com/marketplace/actions/slack-github-actions-slack-integration
MIT License
191 stars 58 forks source link

Can't use env in config file #229

Open fewensa opened 2 years ago

fewensa commented 2 years ago

Describe the bug Can't not use env in slack.yml

To Reproduce

  1. Add env to action https://github.com/darwinia-network/apps-lite/blob/915e6b2a0333e75a8f9e33cd6326c1ce1f7a772c/.github/workflows/deploy-dev.yml#L54
  2. Read env from slack.yml https://github.com/darwinia-network/apps-lite/blob/915e6b2a0333e75a8f9e33cd6326c1ce1f7a772c/.github/config/slack-vercel.yml#L88
  3. https://github.com/darwinia-network/apps-lite/runs/4824566165?check_suite_focus=true#step:9:10

Expected behavior Can read this env from slack.yml

Screenshots image

Additional context I'm tested use default slack.yml it works, read from env happened this error.

satterly commented 2 years ago

Can you enable debug and run again? Thanks.

To enable runner diagnostic logging set the ACTIONS_RUNNER_DEBUG secret to true. To enable step debug logging set the ACTIONS_STEP_DEBUG secret to true.