Skip to content

Commit 13f4ad8

Browse files
Copilotaxgd-code
andauthored
Bump version to 1.0.2 and automate tag creation on VERSION change (#1)
* Initial plan * Bump VERSION to 1.0.2 and add create-tag workflow Agent-Logs-Url: https://github.com/axgd-code/ok_computer/sessions/8bbf72cb-4d82-49ef-964f-d3261ec446be Co-authored-by: axgd-code <1721781+axgd-code@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: axgd-code <1721781+axgd-code@users.noreply.github.com>
1 parent 2e7e697 commit 13f4ad8

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

.github/workflows/tag.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: create-tag
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
paths: ["VERSION"]
7+
8+
jobs:
9+
tag:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Read version
18+
id: version
19+
run: echo "tag=v$(xargs < VERSION)" >> "$GITHUB_OUTPUT"
20+
21+
- name: Create and push tag
22+
run: |
23+
git config user.name "github-actions[bot]"
24+
git config user.email "github-actions[bot]@users.noreply.github.com"
25+
TAG="${{ steps.version.outputs.tag }}"
26+
if git rev-parse "$TAG" >/dev/null 2>&1; then
27+
echo "Tag $TAG already exists, skipping."
28+
exit 0
29+
fi
30+
git tag "$TAG"
31+
git push origin "$TAG"

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.1
1+
1.0.2

0 commit comments

Comments
 (0)