Skip to content

Commit c2935d9

Browse files
committed
tmp
1 parent e28f41d commit c2935d9

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

.github/actions/nextversion/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ runs:
4343
if [[ "${{ inputs.from }}" != '' ]]; then
4444
echo 'version=${{ inputs.from }}' >> $GITHUB_OUTPUT
4545
else
46+
echo $(git --no-pager tag)
4647
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')
4748
echo "version=$version" >> $GITHUB_OUTPUT
4849
fi

.github/workflows/cd.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: cd
22

33
on:
4+
pull_request:
5+
branches: [ "main" ]
46
workflow_dispatch:
57
inputs:
68
version:
@@ -20,20 +22,21 @@ jobs:
2022
- uses: ./.github/actions/nextversion
2123
id: nextversion
2224
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
3235

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 }}

0 commit comments

Comments
 (0)