2021-02-19 16:53:08 +08:00
|
|
|
name: Verify Package Version
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, edited, reopened, synchronize, ready_for_review]
|
|
|
|
|
2022-04-11 11:15:26 +08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-02-19 16:53:08 +08:00
|
|
|
jobs:
|
|
|
|
verify:
|
2022-04-11 11:15:26 +08:00
|
|
|
permissions:
|
|
|
|
contents: read # for actions/checkout to fetch code
|
|
|
|
pull-requests: write # for actions-cool/verify-package-version to comment on PR
|
2021-02-19 16:53:08 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: contains(github.event.pull_request.title, 'changelog') || contains(github.event.pull_request.title, 'release')
|
|
|
|
steps:
|
2022-03-19 21:53:48 +08:00
|
|
|
- uses: actions/checkout@v3
|
2021-02-19 16:53:08 +08:00
|
|
|
- name: verify-version
|
2021-10-19 19:36:22 +08:00
|
|
|
uses: actions-cool/verify-package-version@v1
|
2021-02-19 16:53:08 +08:00
|
|
|
with:
|
|
|
|
title-include-content: 'docs'
|
|
|
|
title-include-version: true
|
|
|
|
open-comment: true
|