Skip to content

Update preview-docs.yml #5

Update preview-docs.yml

Update preview-docs.yml #5

Workflow file for this run

name: Closing PR
on:
pull_request_target:
types:
- opened
- edited
defaults:
run:
shell: bash --noprofile --norc -exo pipefail {0}
jobs:
closing-pr:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
pull-requests: read # closing-pr.js reads the PR body
issues: write # closing-pr.js labels issues
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
sparse-checkout: |
.github
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
const script = require(
`${process.env.GITHUB_WORKSPACE}/.github/workflows/closing-pr.js`
);
await script({ context, github });