File tree Expand file tree Collapse file tree 2 files changed +20
-16
lines changed Expand file tree Collapse file tree 2 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 43
43
if [[ "${{ inputs.from }}" != '' ]]; then
44
44
echo 'version=${{ inputs.from }}' >> $GITHUB_OUTPUT
45
45
else
46
+ echo $(git --no-pager tag)
46
47
version=$(git tag | sort -rV | grep -E "${{ inputs.tag_prefix }}(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)" | head -n 1 || echo '0.0.0')
47
48
echo "version=$version" >> $GITHUB_OUTPUT
48
49
fi
Original file line number Diff line number Diff line change 1
1
name : cd
2
2
3
3
on :
4
+ pull_request :
5
+ branches : [ "main" ]
4
6
workflow_dispatch :
5
7
inputs :
6
8
version :
@@ -20,20 +22,21 @@ jobs:
20
22
- uses : ./.github/actions/nextversion
21
23
id : nextversion
22
24
with :
23
- bump : ${{ github.event.inputs.version }}
24
- - name : git settings
25
- run : |
26
- # https://qiita.com/thaim/items/3d1a4d09ec4a7d8844ce
27
- git config --local user.email "github-actions[bot]"
28
- git config --local user.name "41898282+github-actions[bot]@users.noreply.github.com"
29
- - name : update README
30
- run : |
31
- sed -i -E 's/from: \"(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\"/from: \"${{ steps.nextversion.outputs.next }}\"/g' README.md
25
+ bump : patch
26
+ # ${{ github.event.inputs.version }}
27
+ # - name: git settings
28
+ # run: |
29
+ # # https://qiita.com/thaim/items/3d1a4d09ec4a7d8844ce
30
+ # git config --local user.email "github-actions[bot]"
31
+ # git config --local user.name "41898282+github-actions[bot]@users.noreply.github.com"
32
+ # - name: update README
33
+ # run: |
34
+ # sed -i -E 's/from: \"(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\"/from: \"${{ steps.nextversion.outputs.next }}\"/g' README.md
32
35
33
- git add README.md
34
- git commit -m 'update README.md'
35
- git push origin main
36
- - uses : softprops/action-gh-release@v1
37
- with :
38
- generate_release_notes : true
39
- tag_name : ${{ steps.nextversion.outputs.next }}
36
+ # git add README.md
37
+ # git commit -m 'update README.md'
38
+ # git push origin main
39
+ # - uses: softprops/action-gh-release@v1
40
+ # with:
41
+ # generate_release_notes: true
42
+ # tag_name: ${{ steps.nextversion.outputs.next }}
You can’t perform that action at this time.
0 commit comments