@@ -31,23 +31,41 @@ jobs:
3131 - name : Checkout
3232 uses : actions/checkout@v4
3333
34- - name : Checkout IRISCAST folder
35- run : |
36- cd iriscasttools/
37-
3834 - name : Set up Python
3935 uses : actions/setup-python@v5
4036 with :
4137 python-version : " 3.11"
4238
43- - name : Bump version
44- id : bump
45- uses : callowayproject/bump-my-version@master
39+ - name : Setting up git config
40+ shell : bash
4641 env :
47- BUMPVERSION_TAG : " true"
42+ GH_TOKEN : " ${{ steps.app-token.outputs.token }}" e
43+ run : |
44+ git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
45+ git config --global user.name "$(gh api /users/${GITHUB_ACTOR} | jq .name -r)"
46+ git config -l
47+
48+ - name : Install bump-my-version
49+ shell : bash
50+ run : pip install "bump-my-version"
51+
52+ - name : Pass Inputs to Shell
53+ id : bump
54+ shell : bash
55+ working-directory : ./iriscasttools
56+ run : |
57+ echo "previous-version=$(bump-my-version show current_version)" >> $GITHUB_OUTPUT
58+
59+ bump-my-version bump ${{ inputs.bump-type }}
60+ ([[ $? -gt 0 ]] && echo "bumped=false" || echo "bumped=true") >> $GITHUB_OUTPUT
61+ echo "current-version=$(bump-my-version show current_version)" >> $GITHUB_OUTPUT
62+
63+ - name : Push changes to GitHub
64+ uses : ad-m/github-push-action@master
4865 with :
49- args : ${{ inputs.bump-type }}
50- github-token : " ${{ steps.app-token.outputs.token }}"
66+ github_token : " ${{ steps.app-token.outputs.token }}"
67+ branch : master
68+ force : true
5169
5270 - name : Check
5371 if : steps.bump.outputs.bumped == 'true'
6684 with :
6785 tag_name : iriscasttools-v${{ steps.bump.outputs.current-version }}
6886 name : Release ${{ steps.bump.outputs.current-version }}
69- files : dist/*
87+ files : iriscasttools/ dist/*
7088 token : " ${{ steps.app-token.outputs.token }}"
7189
7290
0 commit comments