We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9638317 commit 1cc0168Copy full SHA for 1cc0168
.github/workflows/ci-cd.yml
@@ -1,4 +1,4 @@
1
-name: CI_CD
+name: Python CI/CD
2
3
on: [push, pull_request]
4
@@ -74,6 +74,16 @@ jobs:
74
uses: actions/setup-python@v4
75
with:
76
python-version: "3.10"
77
+ - name: Check if properly tagged
78
+ run: |
79
+ PACKAGE_VERSION="$(python -c 'from tinify import __version__;print(__version__)')";
80
+ CURRENT_TAG="${GITHUB_REF#refs/*/}";
81
+ if [[ "${PACKAGE_VERSION}" != "${CURRENT_TAG}" ]]; then
82
+ >&2 echo "Tag mismatch"
83
+ >&2 echo "Version in tinify/version.py (${PACKAGE_VERSION}) does not match the current tag=${CURRENT_TAG}"
84
+ >&2 echo "Skipping deploy"
85
+ exit 1;
86
+ fi
87
- name: Install dependencies
88
run: |
89
pip install -r requirements.txt
0 commit comments