Skip to content

Commit

Permalink
Only run slash-command-dispatch workflow on pull requests (#13600)
Browse files Browse the repository at this point in the history
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](https://microsoft.github.io/open-pr/?codeflow=https://github.com/Azure/bicep/pull/13600)
  • Loading branch information
jeskew committed Mar 12, 2024
1 parent 5e20b29 commit 0c0394b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions .github/workflows/slash-command-dispatch.yml
Expand Up @@ -11,6 +11,7 @@ on:
types: [created]
jobs:
slashCommandDispatch:
if: ${{ github.event.issue.pull_request }}
runs-on: ubuntu-latest
permissions:
actions: write
Expand Down
4 changes: 2 additions & 2 deletions global.json
Expand Up @@ -4,7 +4,7 @@
},
"sdk": {
"allowPrerelease": false,
"version": "8.0.201",
"version": "8.0.202",
"rollForward": "latestFeature"
}
}
}
6 changes: 3 additions & 3 deletions src/Bicep.Cli/packages.lock.json
Expand Up @@ -27,9 +27,9 @@
},
"Microsoft.NET.ILLink.Tasks": {
"type": "Direct",
"requested": "[8.0.2, )",
"resolved": "8.0.2",
"contentHash": "hKTrehpfVzOhAz0mreaTAZgbz0DrMEbWq4n3hAo8Ks6WdxdqQhNPvzOqn9VygKuWf1bmxPdraqzTaXriO/sn0A=="
"requested": "[8.0.3, )",
"resolved": "8.0.3",
"contentHash": "0kwNg0LBIvVTx9A2mo9Mnw4wLGtaeQgjSz5P13bOOwdWPPLe9HzI+XTkwiMhS7iQCM6X4LAbFR76xScaMw0MrA=="
},
"Microsoft.SourceLink.GitHub": {
"type": "Direct",
Expand Down
6 changes: 3 additions & 3 deletions src/Bicep.Core/packages.lock.json
Expand Up @@ -195,9 +195,9 @@
},
"Microsoft.NET.ILLink.Tasks": {
"type": "Direct",
"requested": "[8.0.2, )",
"resolved": "8.0.2",
"contentHash": "hKTrehpfVzOhAz0mreaTAZgbz0DrMEbWq4n3hAo8Ks6WdxdqQhNPvzOqn9VygKuWf1bmxPdraqzTaXriO/sn0A=="
"requested": "[8.0.3, )",
"resolved": "8.0.3",
"contentHash": "0kwNg0LBIvVTx9A2mo9Mnw4wLGtaeQgjSz5P13bOOwdWPPLe9HzI+XTkwiMhS7iQCM6X4LAbFR76xScaMw0MrA=="
},
"Microsoft.PowerPlatform.ResourceStack": {
"type": "Direct",
Expand Down
6 changes: 3 additions & 3 deletions src/Bicep.Decompiler/packages.lock.json
Expand Up @@ -16,9 +16,9 @@
},
"Microsoft.NET.ILLink.Tasks": {
"type": "Direct",
"requested": "[8.0.2, )",
"resolved": "8.0.2",
"contentHash": "hKTrehpfVzOhAz0mreaTAZgbz0DrMEbWq4n3hAo8Ks6WdxdqQhNPvzOqn9VygKuWf1bmxPdraqzTaXriO/sn0A=="
"requested": "[8.0.3, )",
"resolved": "8.0.3",
"contentHash": "0kwNg0LBIvVTx9A2mo9Mnw4wLGtaeQgjSz5P13bOOwdWPPLe9HzI+XTkwiMhS7iQCM6X4LAbFR76xScaMw0MrA=="
},
"Microsoft.SourceLink.GitHub": {
"type": "Direct",
Expand Down
6 changes: 3 additions & 3 deletions src/Bicep.Wasm/packages.lock.json
Expand Up @@ -23,9 +23,9 @@
},
"Microsoft.NET.ILLink.Tasks": {
"type": "Direct",
"requested": "[8.0.2, )",
"resolved": "8.0.2",
"contentHash": "hKTrehpfVzOhAz0mreaTAZgbz0DrMEbWq4n3hAo8Ks6WdxdqQhNPvzOqn9VygKuWf1bmxPdraqzTaXriO/sn0A=="
"requested": "[8.0.3, )",
"resolved": "8.0.3",
"contentHash": "0kwNg0LBIvVTx9A2mo9Mnw4wLGtaeQgjSz5P13bOOwdWPPLe9HzI+XTkwiMhS7iQCM6X4LAbFR76xScaMw0MrA=="
},
"Microsoft.NET.Sdk.WebAssembly.Pack": {
"type": "Direct",
Expand Down

0 comments on commit 0c0394b

Please sign in to comment.