You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a custom action that the last step is to send a slack notification of our customer release. Here is the action in the GHA yml file:
- name: Slack customer deployment notificationuses: ravsamhq/notify-slack-action@v1# Skip this notification for dev deploymentsif: ${{ !contains('["foo", "bar", "baz"]', inputs.clientName) }}with:
status: ${{ job.status }}notification_title: "{repo} has been deployed to a customer environment"message_format: "Environment: '${{ inputs.clientName }}' has been deployed with version: `${{ inputs.imageTag }}`"notify_when: "success"icon_success: ":white_check_mark:"env:
SLACK_WEBHOOK_URL: ${{ inputs.clientDeploymentSlackUrl }}
And I'm seeing all of those values correctly in the action when it ran:
Run ravsamhq/notify-slack-action@v1
with:
status: success
notification_title: ***repo*** has been deployed to a customer environment
message_format: Environment: 'foo' has been deployed with version: `v1.2.3`
notify_when: success
icon_success: :white_check_mark:
footer: <***run_url***|View Run> | Developed by <https://www.ravsam.in|RavSam>
mention_users_when: success,failure,warnings
mention_groups_when: success,failure,warnings
icon_failure: :x:
icon_warnings: :large_orange_diamond:
env:
ENVIRONMENT_NAME: foo
TAG_OR_COMMIT: v1.2.3
VERSION: v1.2.3
# ...
SLACK_WEBHOOK_URL: ***
Obviously the SLACK_WEBHOOK_URL comes from a secret so it's not shown in the action output.
Is something wrong with the way I have it setup? Is there a way to debug this effectively to figure out why it failed?
Thanks!
The text was updated successfully, but these errors were encountered:
Hello and welcome to RavSam 💜. Thanks for opening your first issue. I will assign one of our team members to take a look at the problem you have raised. Make sure to include as much information as possible to help our team diagnose the issue and solve it quickly.
If the problem is related to a security concern, then please delete this issue and send us an email at info@ravsam.in.
I don't see a problem with your if condition. I have questions:
Are you sure that the if condition is working for you? I mean try to run the action two times, the first time, making the if condition "true" and second time making the if condition "false".
If the above works correctly for you, then next you need to check if your Slack webhook URL is correct.
Other than that, I can't see any problem with your config.
Hey there,
I've got a custom action that the last step is to send a slack notification of our customer release. Here is the action in the GHA yml file:
And I'm seeing all of those values correctly in the action when it ran:
Obviously the
SLACK_WEBHOOK_URL
comes from a secret so it's not shown in the action output.Is something wrong with the way I have it setup? Is there a way to debug this effectively to figure out why it failed?
Thanks!
The text was updated successfully, but these errors were encountered: