Skip to content

Commit

Permalink
add version check
Browse files Browse the repository at this point in the history
  • Loading branch information
bachue committed May 13, 2024
1 parent 88952a6 commit f5a6fcf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/version-check.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f5a6fcf

Please sign in to comment.