Skip to content

ci(app): update slackapi/slack-github-action version from v1 to v2#20950

Draft
koji wants to merge 1 commit intoedgefrom
chore_update-slack-action-version-in-app
Draft

ci(app): update slackapi/slack-github-action version from v1 to v2#20950
koji wants to merge 1 commit intoedgefrom
chore_update-slack-action-version-in-app

Conversation

@koji
Copy link
Contributor

@koji koji commented Feb 27, 2026

Overview

update slackapi/slack-github-action version from v1 to v2

close AUTH-2780

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

v1 uses the deprecated command

Test Plan and Hands on Testing

Changelog

  • update slackapi/slack-github-action version from v1 to v2

close AUTH-2780

Review requests

Risk assessment

low

update slackapi/slack-github-action version from v1 to v2

close AUTH-2780
@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.94%. Comparing base (baf7786) to head (71d8a32).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             edge   #20950   +/-   ##
=======================================
  Coverage   56.94%   56.94%           
=======================================
  Files        3953     3953           
  Lines      326609   326609           
  Branches    46615    46615           
=======================================
  Hits       185988   185988           
  Misses     140403   140403           
  Partials      218      218           
Flag Coverage Δ
app 45.49% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 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.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the GitHub Actions workflow for app build/deploy notifications by migrating slackapi/slack-github-action from v1 (deprecated output commands) to v2, aligning with GitHub Actions deprecation guidance.

Changes:

  • Bump slackapi/slack-github-action from v1.14.0 to v2.1.1.
  • Migrate Slack notification steps to v2 inputs (webhook + webhook-type) and remove SLACK_WEBHOOK_URL env usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 449 to 454
with:
webhook: ${{ secrets.OT_APP_OT3_SLACK_NOTIFICATION_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: '{"branch_or_tag":"${{ github.ref_name }}","build_type":"${{ needs.determine-build-type.outputs.type }}", "gh_linkback":"https://github.com/Opentrons/opentrons/tree/${{ github.ref_name }}", "windows_build":"${{ env._ACCESS_URL }}/${{steps.names.outputs.windows-release}}", "mac_build":"${{ env._ACCESS_URL }}/${{steps.names.outputs.mac-release}}", "linux_build":"${{ env._ACCESS_URL }}/${{steps.names.outputs.linux-release}}"}'
env:
SLACK_WEBHOOK_URL: ${{ secrets.OT_APP_ROBOTSTACK_SLACK_NOTIFICATION_WEBHOOK_URL }}
_ACCESS_URL: https://${{env._APP_DEPLOY_BUCKET_ROBOTSTACK}}/${{env._APP_DEPLOY_FOLDER_ROBOTSTACK}}
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

The slack notify release step now posts to secrets.OT_APP_OT3_SLACK_NOTIFICATION_WEBHOOK_URL, but previously it used a different webhook secret for release notifications. This changes where release notifications are delivered and seems outside the PR’s stated scope (action version bump). If release notifications should still go to the robotstack webhook/channel, switch this step back to the appropriate secret (or document the intentional change).

Copilot uses AI. Check for mistakes.
Comment on lines +440 to 442
webhook: ${{ secrets.OT_APP_OT3_SLACK_NOTIFICATION_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: '{"branch_or_tag":"${{ github.ref_name }}","build_type":"${{ needs.determine-build-type.outputs.type }}", "gh_linkback":"https://github.com/Opentrons/opentrons/tree/${{ github.ref_name }}", "windows_build":"${{ env._ACCESS_URL }}/${{steps.names.outputs.windows-internal-release}}", "mac_build":"${{ env._ACCESS_URL }}/${{steps.names.outputs.mac-internal-release}}", "linux_build":"${{ env._ACCESS_URL }}/${{steps.names.outputs.linux-internal-release}}"}'
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

The step outputs being interpolated here include hyphens (e.g. windows-internal-release from echo "windows-${variant}=..." >> $GITHUB_OUTPUT). In GitHub Actions expressions, keys with hyphens should be accessed with bracket notation (e.g. steps.names.outputs['windows-internal-release']) or the output names should be changed to use underscores. Otherwise the expression may be parsed as subtraction and not resolve correctly.

Copilot uses AI. Check for mistakes.
with:
webhook: ${{ secrets.OT_APP_OT3_SLACK_NOTIFICATION_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: '{"branch_or_tag":"${{ github.ref_name }}","build_type":"${{ needs.determine-build-type.outputs.type }}", "gh_linkback":"https://github.com/Opentrons/opentrons/tree/${{ github.ref_name }}", "windows_build":"${{ env._ACCESS_URL }}/${{steps.names.outputs.windows-release}}", "mac_build":"${{ env._ACCESS_URL }}/${{steps.names.outputs.mac-release}}", "linux_build":"${{ env._ACCESS_URL }}/${{steps.names.outputs.linux-release}}"}'
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

Same issue as above: this payload references outputs like windows-release / mac-release / linux-release, which contain hyphens. These should be accessed via bracket notation (e.g. steps.names.outputs['windows-release']) or renamed to underscore-separated output names to ensure the expressions resolve reliably.

Suggested change
payload: '{"branch_or_tag":"${{ github.ref_name }}","build_type":"${{ needs.determine-build-type.outputs.type }}", "gh_linkback":"https://github.com/Opentrons/opentrons/tree/${{ github.ref_name }}", "windows_build":"${{ env._ACCESS_URL }}/${{steps.names.outputs.windows-release}}", "mac_build":"${{ env._ACCESS_URL }}/${{steps.names.outputs.mac-release}}", "linux_build":"${{ env._ACCESS_URL }}/${{steps.names.outputs.linux-release}}"}'
payload: '{"branch_or_tag":"${{ github.ref_name }}","build_type":"${{ needs.determine-build-type.outputs.type }}", "gh_linkback":"https://github.com/Opentrons/opentrons/tree/${{ github.ref_name }}", "windows_build":"${{ env._ACCESS_URL }}/${{ steps.names.outputs['windows-release'] }}", "mac_build":"${{ env._ACCESS_URL }}/${{ steps.names.outputs['mac-release'] }}", "linux_build":"${{ env._ACCESS_URL }}/${{ steps.names.outputs['linux-release'] }}"}'

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants