Automatic releases
Update build.yml
This commit is contained in:
commit
c1336de943
1 changed files with 7 additions and 5 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
@ -8,6 +8,8 @@ on:
|
||||||
- '**/*.md'
|
- '**/*.md'
|
||||||
- '.gitignore'
|
- '.gitignore'
|
||||||
- '.dockerignore'
|
- '.dockerignore'
|
||||||
|
env:
|
||||||
|
vers: v${{ secrets.MAJOR }}.${{ secrets.MINOR }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
shellcheck:
|
shellcheck:
|
||||||
|
@ -71,9 +73,9 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
|
||||||
with:
|
with:
|
||||||
xtag: "v1.98"
|
tag: "$vers"
|
||||||
title: "v${{ vars.MAJOR }}.${{ secrets.MINOR }}"
|
title: "$vers"
|
||||||
xbody: "Release v1.98"
|
body: "Release $vers"
|
||||||
|
|
||||||
bump:
|
bump:
|
||||||
needs: release
|
needs: release
|
||||||
|
@ -82,13 +84,13 @@ jobs:
|
||||||
-
|
-
|
||||||
name: Autoincrement minor version
|
name: Autoincrement minor version
|
||||||
run: |
|
run: |
|
||||||
echo "NEW_MINOR_VERSION=$((${{ secrets.MINOR }}+1))" >> $GITHUB_ENV
|
echo "NEW_MINOR=$((${{ secrets.MINOR }}+1))" >> $GITHUB_ENV
|
||||||
-
|
-
|
||||||
name: Update minor version
|
name: Update minor version
|
||||||
uses: hmanzur/actions-set-secret@v2.0.0
|
uses: hmanzur/actions-set-secret@v2.0.0
|
||||||
with:
|
with:
|
||||||
name: 'MINOR'
|
name: 'MINOR'
|
||||||
value: ${{ env.NEW_MINOR_VERSION }}
|
value: ${{ env.NEW_MINOR }}
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
token: ${{ secrets.REPO_ACCESS_TOKEN }}
|
token: ${{ secrets.REPO_ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue