Skip to content

Commit 06e0acb

Browse files
committed
WIP
1 parent 50bd95b commit 06e0acb

File tree

1 file changed

+12
-22
lines changed

1 file changed

+12
-22
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,12 @@ jobs:
2727
# exit 1
2828
# fi
2929

30-
- name: Setup GitHub CLI
30+
- name: Check for Blocking Issues/PRs
31+
id: check_blocks
3132
run: |
3233
gh auth setup-git
3334
gh auth status
34-
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3635
37-
- name: Check for Blocking Issues/PRs
38-
id: check_blocks
39-
run: |
4036
echo "Checking for blocking issues and PRs..."
4137
4238
# Check for blocking issues
@@ -59,27 +55,21 @@ jobs:
5955
env:
6056
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6157

62-
- name: Get Latest Tag
63-
id: get_latest_tag
58+
- name: Calculate next version
6459
run: |
6560
latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1) || echo "v0.0.0")
6661
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"
7363
new_minor=$((minor + 1))
7464
new_tag="$major.$new_minor.0"
7565
echo "New tag: $new_tag"
7666
echo "new_tag=$new_tag" >> $GITHUB_ENV
7767
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

Comments
 (0)