Skip to content

Commit a7c2b93

Browse files
test
1 parent 5bd129c commit a7c2b93

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

.github/workflows/iriscast_build.yaml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,31 @@ 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
39+
- name: Install bump-my-version
40+
shell: bash
41+
run: pip install "bump-my-version"
42+
43+
- name: Pass Inputs to Shell
4444
id: bump
45-
uses: callowayproject/bump-my-version@master
46-
env:
47-
BUMPVERSION_TAG: "true"
45+
shell: bash
46+
run: |
47+
echo "previous-version=$(bump-my-version show current_version)" >> $GITHUB_OUTPUT
48+
49+
bump-my-version bump ${{ inputs.bump-type }}
50+
([[ $? -gt 0 ]] && echo "bumped=false" || echo "bumped=true") >> $GITHUB_OUTPUT
51+
echo "current-version=$(bump-my-version show current_version)" >> $GITHUB_OUTPUT
52+
53+
- name: Push changes to GitHub
54+
uses: ad-m/github-push-action@master
4855
with:
49-
args: ${{ inputs.bump-type }}
50-
github-token: "${{ steps.app-token.outputs.token }}"
56+
github_token: "${{ steps.app-token.outputs.token }}"
57+
branch: master
58+
force: true
5159

5260
- name: Check
5361
if: steps.bump.outputs.bumped == 'true'

0 commit comments

Comments
 (0)