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

Only run slash-command-dispatch workflow on pull requests #13600

Merged
merged 2 commits into from Mar 12, 2024

Conversation

jeskew
Copy link
Contributor

@jeskew jeskew commented Mar 12, 2024

I'm getting an email about a failed workflow every time I comment on an issue. This PR adds a condition to slashCommandDispatch in line with the example on https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment-on-issues-only-or-pull-requests-only

Microsoft Reviewers: Open in CodeFlow

Copy link
Contributor

github-actions bot commented Mar 12, 2024

Test this change out locally with the following install scripts (Action run 8254992995)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 8254992995
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 8254992995"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 8254992995
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 8254992995"

Copy link
Contributor

Test Results

    66 files   -     33      66 suites   - 33   22m 6s ⏱️ - 19m 6s
10 680 tests  -     20  10 678 ✅  -     20  2 💤 ±0  0 ❌ ±0 
25 250 runs   - 12 621  25 246 ✅  - 12 619  4 💤  - 2  0 ❌ ±0 

Results for commit 442fdc0. ± Comparison against base commit 5e20b29.

@jeskew jeskew enabled auto-merge (squash) March 12, 2024 18:51
@jeskew jeskew merged commit 0c0394b into main Mar 12, 2024
44 checks passed
@jeskew jeskew deleted the jeskew/only-dispatch-slash-commands-on-PRs branch March 12, 2024 19:59
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.

None yet

2 participants