first commit
This commit is contained in:
19
vendor/qiniu/php-sdk/.github/workflows/version-check.yml
vendored
Normal file
19
vendor/qiniu/php-sdk/.github/workflows/version-check.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
name: PHP SDK Version Check
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v[0-9]+.[0-9]+.[0-9]+"
|
||||
jobs:
|
||||
linux:
|
||||
name: Version Check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Set env
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
|
||||
- name: Check
|
||||
run: |
|
||||
set -e
|
||||
grep -qF "## ${RELEASE_VERSION}" CHANGELOG.md
|
||||
grep -qF "const SDK_VER = '${RELEASE_VERSION}';" src/Qiniu/Config.php
|
||||
Reference in New Issue
Block a user