Browse Source

CI: Check Pico version on tag push

Daniel Rudolf 3 years ago
parent
commit
e3365a4345
1 changed files with 5 additions and 0 deletions
  1. 5 0
      .github/workflows/test.yml

+ 5 - 0
.github/workflows/test.yml

@@ -40,6 +40,11 @@ jobs:
                     php-version: ${{ env.PHP_VERSION }}
                     php-tools: phpcs
 
+            -   name: Check Pico version
+                if: ${{ github.ref_type == 'tag' }}
+                run: |
+                    [ "$GITHUB_REF_NAME" == "v$PICO_VERSION" ]
+
             -   name: Run PHP_CodeSniffer
                 run: |
                     phpcs --standard=.phpcs.xml