Skip to content

[docs] Reference all function calls with () #15

[docs] Reference all function calls with ()

[docs] Reference all function calls with () #15

name: Issue cleanup & Order ID validation
on:
issues:
types:
- opened
workflow_call:
outputs:
orderId:
description: 'If a order id is found in the issue body, it will be outputted here'
value: ${{ jobs.issue_cleanup.outputs.orderId }}
permissions: {}
jobs:
issue_cleanup:
name: Clean issue body
runs-on: ubuntu-latest
permissions:
issues: write
outputs:
orderId: ${{ steps.cleanup.outputs.ORDER_ID }}
steps:
- name: Check out mui-public repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
# Check this repository out, otherwise the script won't be available,
# as it otherwise checks out the repository where the workflow caller is located
repository: mui/mui-public
- name: Clean issue body
id: cleanup
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
const script = require('./.github/workflows/scripts/issues/bodyCleanup.js')
await script({core, github, context})