-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github actions check enforcer (#981)
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,25 @@ | ||
# 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: Check Enforcer | ||
|
||
on: | ||
check_suite: | ||
types: [completed] | ||
issue_comment: | ||
types: [created] | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
event-handler: | ||
permissions: | ||
statuses: write # to set status (azure/azure-sdk-actions) | ||
pull-requests: read # to read pull requests (azure/azure-sdk-actions) | ||
checks: read # to read check status (azure/azure-sdk-actions) | ||
name: Handle ${{ github.event_name }} ${{ github.event.action }} event | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: azure/azure-sdk-actions@main | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |