File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,23 +19,33 @@ jobs:
1919 fetch-depth : 0
2020 branch : main
2121
22- - name : Set up Python
23- uses : actions/setup-python@v5
24- with :
25- python-version : " 3.11 "
26-
22+ - name : Switch to main
23+ run : |
24+ git fetch origin main
25+ git checkout main
26+
2727 - name : Update version from tag
2828 run : |
2929 TAG_NAME=${GITHUB_REF#refs/tags/}
3030 python scripts/set_version.py $TAG_NAME
31+
32+ - name : Commit version bump
33+ run : |
3134 git config user.name "github-actions"
3235 git config user.email "actions@github.com"
33- git commit -am "chore: set version from $TAG_NAME" || echo "No changes to commit"
36+ git add pytest_htmlx/__init__.py
37+ git commit -m "chore: set version from $TAG_NAME" || echo "No changes to commit"
3438 git push origin main
35-
39+
3640 - name : Verify new version
3741 run : grep __version__ pytest_htmlx/__init__.py
3842
43+ - name : Set up Python
44+ uses : actions/setup-python@v5
45+ with :
46+ python-version : " 3.11"
47+
48+
3949 - name : Install build tools
4050 run : |
4151 python -m pip install --upgrade pip
You can’t perform that action at this time.
0 commit comments