Explorar el Código

CI: Check Pico version on tag push

Daniel Rudolf hace 3 años
padre
commit
e3365a4345
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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