sourcegraph/.github/workflows/pull-request.yml
2023-08-17 22:08:30 +00:00

23 lines
653 B
YAML

name: "Update Pull Request"
on:
pull_request:
types: [opened, reopened]
paths: ['doc/**']
jobs:
update_pr:
runs-on: ubuntu-latest
steps:
- uses: tzkhan/pr-update-action@v2
with:
base-branch-regex: '[a-z\d-_.\\/]+'
head-branch-regex: '[a-z\d-_.\\/]+'
body-template: |
## Preview 🤩
[Preview Link](https://docs.sourcegraph.com/@%headbranch%)
body-update-action: "suffix"
body-uppercase-base-match: false
body-uppercase-head-match: false
lowercase-branch: true
repo-token: "${{ secrets.GH_PROJECTS_ACTION_TOKEN }}"