forked from mui/mui-x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[infra] Adds order id validation action (mui#13957)
Signed-off-by: Michel Engelen <32863416+michelengelen@users.noreply.github.com>
- Loading branch information
1 parent
5bc9d9e
commit b99e3ea
Showing
4 changed files
with
250 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,24 @@ | ||
name: Order ID validation | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
validate-order-id: | ||
runs-on: ubuntu-latest | ||
name: Label issue based on order ID | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Label issue | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const script = require('./scripts/orderIdValidation.js') | ||
await script(core, github) | ||
env: | ||
OWNER: ${{ github.repository_owner }} | ||
REPO: ${{ github.event.repository.name }} | ||
ISSUE_NUMBER: ${{ github.event.issue.number }} | ||
TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ORDER_API_TOKEN: ${{ secrets.SHOP_AUTH_TOKEN }} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.