@@ -27,16 +27,12 @@ jobs:
27
27
# exit 1
28
28
# fi
29
29
30
- - name : Setup GitHub CLI
30
+ - name : Check for Blocking Issues/PRs
31
+ id : check_blocks
31
32
run : |
32
33
gh auth setup-git
33
34
gh auth status
34
- env :
35
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
35
37
- - name : Check for Blocking Issues/PRs
38
- id : check_blocks
39
- run : |
40
36
echo "Checking for blocking issues and PRs..."
41
37
42
38
# Check for blocking issues
@@ -59,27 +55,21 @@ jobs:
59
55
env :
60
56
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61
57
62
- - name : Get Latest Tag
63
- id : get_latest_tag
58
+ - name : Calculate next version
64
59
run : |
65
60
latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1) || echo "v0.0.0")
66
61
echo "Latest tag: $latest_tag"
67
- echo "latest_tag=$latest_tag" >> $GITHUB_ENV
68
-
69
- - name : Bump Version
70
- id : bump_version
71
- run : |
72
- IFS='.' read -r major minor patch <<< "${{ env.latest_tag }}"
62
+ IFS='.' read -r major minor patch <<< "$latest_tag"
73
63
new_minor=$((minor + 1))
74
64
new_tag="$major.$new_minor.0"
75
65
echo "New tag: $new_tag"
76
66
echo "new_tag=$new_tag" >> $GITHUB_ENV
77
67
78
- # - name: Push New Tag
79
- # run: |
80
- # git config user.name "github-actions[bot]"
81
- # git config user.email "github-actions[bot]@users.noreply.github.com"
82
- # git tag example-${{ env.new_tag }}
83
- # git push origin example-${{ env.new_tag }}
84
- # env:
85
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68
+ - name : Push New Tag
69
+ run : |
70
+ git config user.name "github-actions[bot]"
71
+ git config user.email "github-actions[bot]@users.noreply.github.com"
72
+ git tag example-${{ env.new_tag }}
73
+ git push origin example-${{ env.new_tag }}
74
+ env :
75
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments