-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35a0161
commit dc9ec82
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Tag a new seat-docker release | ||
on: | ||
release: | ||
types: [released] | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Checkout and tag | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: eveseat/seat-docker | ||
ssh-key: '${{ secrets.SEAT_DOCKER_REPO }}' | ||
- run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
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 |