Skip to content

Commit 697cb92

Browse files
committed
automating fixing tag
1 parent f14ca9b commit 697cb92

2 files changed

Lines changed: 38 additions & 4 deletions

File tree

.github/workflows/update_tag.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Update Base Tag on Release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
update-tag:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v4
14+
15+
- name: Update Base Tag
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
run: |
19+
# Extract the release tag name
20+
TAG_NAME=${{ github.event.release.tag_name }}
21+
22+
echo "Updating base tag to point to release tag: $TAG_NAME"
23+
24+
# Fetch all branches and tags
25+
git fetch --all
26+
27+
# Create or move the base tag to point to the release tag
28+
git checkout -B v1 $TAG_NAME
29+
30+
# Push the updated base tag
31+
git push origin v1 --force

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
# evomaster-action
2-
GitHub Action for running EvoMaster
1+
# EvoMaster GitHub Action
2+
3+
This is a GitHub Action for running EvoMaster as part of CI.
4+
5+
DOCUMENTATION UNDER CONSTRUCTION
6+
7+
38

4-
WARNING: this is work in progress. Do not use yet
59

6-
## TODO Documentation under construction

0 commit comments

Comments
 (0)