Skip to content

feat: support slack cli commands with composite action inputs#560

Draft
zimeg wants to merge 18 commits intomainfrom
cli
Draft

feat: support slack cli commands with composite action inputs#560
zimeg wants to merge 18 commits intomainfrom
cli

Conversation

@zimeg
Copy link
Member

@zimeg zimeg commented Feb 25, 2026

Summary

This PR adds support for running Slack CLI commands with this composite action:

- uses: slackapi/slack-github-action/cli@v2
  with:
    command: "version"

Follows earlier efforts and explorations of @ewanek1 in #484 #486 #488 #489 👾 ✨

Notes

  • The "nested" structure is recommendation of @WilliamBergamin and I find it makes inputs and outputs of this step much more clear for documentation sake! An earlier approach in ae50e2e demonstrates the "combined" setup.

Requirements

@zimeg zimeg self-assigned this Feb 25, 2026
@zimeg zimeg added enhancement New feature or request semver:minor labels Feb 25, 2026
@codecov
Copy link

codecov bot commented Feb 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.92%. Comparing base (bb7fade) to head (47ed37c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #560   +/-   ##
=======================================
  Coverage   95.92%   95.92%           
=======================================
  Files          14       14           
  Lines        2697     2697           
=======================================
  Hits         2587     2587           
  Misses        110      110           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
Copy link
Member Author

zimeg commented Feb 25, 2026

A few CLI fixes were needed for windows support in CI. The checks above are using these changes in tests:

🐞 slackapi/slack-cli#178
🌚 slackapi/slack-cli#353

Copy link
Contributor

@WilliamBergamin WilliamBergamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good 🚀

Comment on lines +257 to +259
- ubuntu-latest
- macos-latest
- windows-latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 💯

Comment on lines +46 to +54
- name: Add Slack CLI to PATH
if: steps.slack-cli-check.outputs.exists != 'true' && runner.os != 'Windows'
shell: bash
run: echo "$HOME/.slack/bin" >> "$GITHUB_PATH" # zizmor: ignore[github-env]

- name: Add Slack CLI to PATH
if: steps.slack-cli-check.outputs.exists != 'true' && runner.os == 'Windows'
shell: pwsh
run: Add-Content -Path $env:GITHUB_PATH -Value "$env:USERPROFILE\AppData\Local\slack-cli\bin" # zizmor: ignore[github-env]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clever 💯

env:
SLACK_CLI_VERSION: ${{ inputs.version }}

- name: Install Slack CLI
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit

Suggested change
- name: Install Slack CLI
- name: Pwsh Install Slack CLI

shell: pwsh
run: Add-Content -Path $env:GITHUB_PATH -Value "$env:USERPROFILE\AppData\Local\slack-cli\bin" # zizmor: ignore[github-env]

- name: Install Slack CLI
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit

Suggested change
- name: Install Slack CLI
- name: Bash Install Slack CLI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request semver:minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants