nextstrain / mpox

Nextstrain build for mpox virus
https://nextstrain.org/mpox
MIT License
42 stars 19 forks source link

.github/workflows: Use centralized SLACK_CHANNELS variable #221

Closed joverlee521 closed 11 months ago

joverlee521 commented 11 months ago

Description of proposed changes

Using the centralized variable makes it easier for us to update the slack channel value when needed.

As a part of this change, I've already added the SLACK_CHANNELS variable to the repo. I opted to use the channel ID instead of the channel name so that we have the option to rename the slack channel if desired.

Related issue(s)

Related to https://github.com/nextstrain/mpox/pull/220

Checklist

joverlee521 commented 11 months ago

I didn't realize GitHub added support for non-secret variables - that's neat!

Yup! Unlike secrets, the vars context is directly available for jobs.<job_id>.with.<with_id> so we can use it directly here.