-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.08 KB
/
release.yml
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
30
31
32
33
34
35
36
37
38
39
---
name: Release projects
on:
push:
branches:
- main
paths:
- golang/Dockerfile
jobs:
repos:
strategy:
matrix:
repo: ["dyff", "retry", "termshot", "havener", "yft"]
runs-on: ubuntu-latest
steps:
- name: Install semver
run: |
wget -O /usr/local/bin/semver https://raw.githubusercontent.com/fsaintjacques/semver-tool/master/src/semver
chmod +x /usr/local/bin/semver
semver --version
- name: Release homeport projects
env:
GH_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
run: |
echo -e "\\x1b[93mProcessing ${{ matrix.repo }}\\x1b[0m"
CURRENT_VERSION="$(gh --repo homeport/${{ matrix.repo }} release view --json tagName --jq .tagName)"
echo "current release tag: $CURRENT_VERSION"
NEXT_VERSION="v$(semver bump patch "$CURRENT_VERSION")"
echo "bumping patch level to: $NEXT_VERSION"
gh --repo homeport/${{ matrix.repo }} \
release create "$NEXT_VERSION" \
--title="${{ matrix.repo }} release $NEXT_VERSION" \
--notes=""