-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[check-enforcer] Add test action triggering on workflow_run #49565
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5ea7eed
Add workflow_run trigger to event.yml
raych1 d3e2484
Remove workflow_run trigger from GitHub Actions
raych1 fb5b30f
Added test workflow for check enforcer
raych1 1cd1ebe
Update workflow name format in event-test.yml
raych1 9c765cb
Apply suggestion from @mikeharder
mikeharder 88e2dd7
Pin azure/azure-sdk-actions SHA in event-test.yml
Copilot 49157ea
Rename event-test.yml to check-enforcer-test.yml
mikeharder 25cd40b
Rename check-enforcer-test.yml to check-enforcer.yml
mikeharder 8b6aba0
Apply suggestion from @mikeharder
mikeharder b809b91
Apply suggestion from @mikeharder
mikeharder 1e1a152
Apply suggestion from @mikeharder
mikeharder dc46b23
Potential fix for pull request finding
mikeharder caaf93a
Apply suggestion from @mikeharder
mikeharder 98739c4
Apply suggestion from @mikeharder
mikeharder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # NOTE: currently azure-sdk-actions only hosts check enforcer code. | ||
| # If further functionality is added, this name should be updated to reflect | ||
| # the more generic behavior | ||
| name: "\\[TEST-IGNORE\\] Check Enforcer" | ||
|
|
||
| on: | ||
| check_suite: | ||
| types: [completed] | ||
| issue_comment: | ||
| types: [created] | ||
|
mikeharder marked this conversation as resolved.
|
||
| workflow_run: | ||
| workflows: ["*"] | ||
| types: [completed] | ||
|
mikeharder marked this conversation as resolved.
|
||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| check-enforcer: | ||
| permissions: | ||
| statuses: write # to set status (azure/azure-sdk-actions) | ||
| pull-requests: read # to read pull requests; use "write" for response comments (azure/azure-sdk-actions) | ||
|
raych1 marked this conversation as resolved.
|
||
| checks: read # to read check status (azure/azure-sdk-actions) | ||
| name: Handle ${{ github.event_name }} ${{ github.event.action }} event | ||
|
mikeharder marked this conversation as resolved.
Outdated
|
||
| runs-on: ubuntu-latest # This image is intentionally set to "latest", and not to a specific version | ||
| steps: | ||
| - uses: azure/azure-sdk-actions@e1ab1a2cb5944bfea74b5cdbfc96e34da96548d2 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.