linode / terraform-provider-linode

Terraform Linode provider
https://www.terraform.io/docs/providers/linode/
Mozilla Public License 2.0
202 stars 98 forks source link

test: Fix slack payload in integration workflow #1600

Closed ykim-akamai closed 1 month ago

ykim-akamai commented 1 month ago

📝 Description

Needed to use job status instead of step outcome e.g.

"text": "*Build Result:*\n${{ steps.integration_tests.outcome == 'success' && ':large_green_circle: Build Passed' || ':red_circle: Build Failed' }}"

Instead need to use,

"text": "*Build Result:*\n${{ needs.integration_tests.result == 'success' && ':large_green_circle: Build Passed' || ':red_circle: Build Failed' }}"

✔️ How to Test

Tested on forked repo - https://github.com/ykim-1/linodego/actions/runs/11075403223

📷 Preview

If applicable, include a screenshot or code snippet of this change. Otherwise, please remove this section.