Skip to content

Commit 8e267b2

Browse files
raych1mikeharderCopilotCopilot
authored
[check-enforcer] Add test action triggering on workflow_run (#49565)
* Add workflow_run trigger to event.yml * Remove workflow_run trigger from GitHub Actions Removed workflow_run trigger from event.yml * Added test workflow for check enforcer * Update workflow name format in event-test.yml * Apply suggestion from @mikeharder * Pin azure/azure-sdk-actions SHA in event-test.yml Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> * Rename event-test.yml to check-enforcer-test.yml * Rename check-enforcer-test.yml to check-enforcer.yml * Apply suggestion from @mikeharder * Apply suggestion from @mikeharder * Apply suggestion from @mikeharder * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Apply suggestion from @mikeharder * Apply suggestion from @mikeharder --------- Co-authored-by: Mike Harder <mharder@microsoft.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent a14ab5e commit 8e267b2

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# NOTE: currently azure-sdk-actions only hosts check enforcer code.
2+
# If further functionality is added, this name should be updated to reflect
3+
# the more generic behavior
4+
name: "[TEST-IGNORE] Check Enforcer"
5+
6+
on:
7+
check_suite:
8+
types: [completed]
9+
issue_comment:
10+
types: [created]
11+
workflow_run:
12+
workflows: ["*"]
13+
types: [completed]
14+
15+
permissions: {}
16+
17+
jobs:
18+
check-enforcer:
19+
permissions:
20+
statuses: write # to set status (azure/azure-sdk-actions)
21+
pull-requests: read # to read pull requests; use "write" for response comments (azure/azure-sdk-actions)
22+
checks: read # to read check status (azure/azure-sdk-actions)
23+
name: "[TEST-IGNORE] Check Enforcer (${{ github.event_name }}:${{ github.event.action }})"
24+
runs-on: ubuntu-latest # This image is intentionally set to "latest", and not to a specific version
25+
steps:
26+
- uses: azure/azure-sdk-actions@e1ab1a2cb5944bfea74b5cdbfc96e34da96548d2
27+
with:
28+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)