@@ -11,44 +11,36 @@ jobs:
1111 - name : Information
1212 run : |
1313 echo "Version update for ${{ github.event.client_payload.package_name }} -> ${{ github.event.client_payload.package_version }} requested"
14- - uses : actions/checkout@v2
14+ - uses : actions/checkout@v4
1515 with :
1616 token : ${{ secrets.REPO_ACCESS_TOKEN }}
1717 fetch-depth : 0
18- - uses : actions/setup-python@v2
18+ - uses : actions/setup-python@v4
1919 with :
2020 python-version : 3.8
2121
22- # To prevent lots of spurious pypi package pushes during upgrades, you can
23- # commit a file 'pause_until'. This will only push a new tag once that
24- # package has been reached
25- # - name: Check if paused
26- # id: check-paused
27- # shell: bash
28- # run: |
29- # if [ ! -f pause_until ]; then
30- # echo "::set-output name=paused::no"
31- # elif [ "$(cat pause_until)" == "${{ github.event.client_payload.package_name }}" ]; then
32- # rm pause_until
33- # git config --local user.email "[email protected] " 34- # git config --local user.name "Github Action"
35- # git commit -m "Remove paused marker" pause_until
36- # git push
37- # echo "::set-output name=paused::no"
38- # else
39- # echo "::set-output name=paused::yes"
40- # fi
22+ - name : Install script requirements
23+ shell : bash
24+ run : |
25+ python -m pip --disable-pip-version-check install packaging tomlkit
4126
42- - name : Bump Requirements
43- uses : robotpy/build-actions/bump-requirements@v2022
44- with :
45- pkgname : ${{ github.event.client_payload.package_name }}
46- pkgver : ${{ github.event.client_payload.package_version }}
27+ - name : Bump requirements
28+ shell : bash
29+ run : |
30+ python .github/workflows/bump.py ${{ github.event.client_payload.package_name }} ${{ github.event.client_payload.package_version }} "$(git describe --tags)"
4731
48- # - name: Bump Version and push Tag
49- # uses: anothrNick/[email protected] 50- # # if: steps.check-paused.paused == 'no'
51- # env:
52- # GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
53- # DEFAULT_BUMP: patch
54- # WITH_V: false
32+ - name : Commit and push
33+ shell : bash
34+ run : |
35+ git config --local user.email "[email protected] " 36+ git config --local user.name "Github Action"
37+ git add pyproject.toml
38+ git commit -m "Bump '${{ github.event.client_payload.package_name }}' dependency to '${{ github.event.client_payload.package_version }}'"
39+ git push
40+
41+ - name : Tag and push
42+ shell : bash
43+ run : |
44+ TAG=$(python .github/workflows/tag.py ${{ github.event.client_payload.package_name }} ${{ github.event.client_payload.package_version }} "$(git describe --tags --no-abbrev)")
45+ git tag ${TAG}
46+ git push origin ${TAG}
0 commit comments