-
Notifications
You must be signed in to change notification settings - Fork 149
30 lines (28 loc) · 867 Bytes
/
main.yml
File metadata and controls
30 lines (28 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Tag a new seat-docker release
on:
release:
types: [released]
jobs:
build:
name: Checkout and tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: eveseat/seat-docker
ref: 'master'
ssh-key: '${{ secrets.SEAT_DOCKER_REPO }}'
- run: |
git config user.name github-actions
git config user.email github-actions@github.com
currver=`cat version`
a=(${currver//./ })
newrelease=${a[2]}
newrelease=$((newrelease+1))
newver="${a[0]}.${a[1]}.${newrelease}"
echo $newver > version
git add version
git commit -m "bump to version $newver"
git push
git tag -a "$newver" -m "src: $GITHUB_REPOSITORY commit: ${GITHUB_SHA: -8}"
git push origin --tags