Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No notification when workflow run is triggered #384

Open
IvanAlieksieienko opened this issue Sep 11, 2024 · 0 comments
Open

No notification when workflow run is triggered #384

IvanAlieksieienko opened this issue Sep 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@IvanAlieksieienko
Copy link

IvanAlieksieienko commented Sep 11, 2024

Describe the bug
Hi there. According to the documentation for "Actions workflow notifications":

You will get notified when a new workflow run is triggered. And you can track the live status of the jobs.

However, this functionality does not work as described.

Steps to Reproduce

  1. Configure notifications using the following command:
    Subscribe owner/repo workflows:{name:"Test Notifications to Microsoft Teams" branch:"main" event:"workflow_dispatch"}
  2. Start the workflow manually. Here's an example workflow:
    name: "Test Notifications to Microsoft Teams"
    on:
      workflow_dispatch:
    jobs:
      build:
        runs-on: ubuntu-latest
        steps:
          - name: Mock long-running job
            run: |
              echo "Starting a long-running mock job..."
              for i in {1..6}; do
                echo "Processing step $i/6"
                sleep 10  # Simulate a 10-second task for each step
              done
              echo "Long-running mock job complete."

Expected behavior
A notification should be sent when the workflow starts, with additional updates as the status changes throughout the workflow execution, including when it completes.

Actual behavior
We only receive a notification when the workflow finishes, with no updates during its execution.

Screenshots
image

Additional context
It is essential to receive notifications when a workflow is triggered, especially in scenarios like manual deployments to the staging environment. The entire team needs to be aware that changes will occur soon. Moreover, timely notifications are crucial when a pipeline gets stuck without throwing an error.


Let me know if you need anything else!

@IvanAlieksieienko IvanAlieksieienko added the bug Something isn't working label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant