Update build.yml

This commit is contained in:
Kroese 2023-04-29 08:18:34 +02:00 committed by GitHub
parent a621e1c4d4
commit 68b148ca67

View file

@ -8,8 +8,6 @@ on:
- '**/*.md' - '**/*.md'
- '.gitignore' - '.gitignore'
- '.dockerignore' - '.dockerignore'
env:
vers: v${{ secrets.MAJOR }}.${{ secrets.MINOR }}
jobs: jobs:
shellcheck: shellcheck:
@ -73,26 +71,21 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
with: with:
tag: "$vers" tag: "v${{ secrets.MAJOR }}.${{ secrets.MINOR }}"
title: "$vers" title: "v${{ secrets.MAJOR }}.${{ secrets.MINOR }}"
body: "Release $vers" body: "Release v${{ secrets.MAJOR }}.${{ secrets.MINOR }}"
-
bump: name: Increment minor version
needs: release run: |
runs-on: ubuntu-latest echo "NEW_MINOR=$((${{ secrets.MINOR }}+1))" >> $GITHUB_ENV
steps: -
- name: Update minor version
name: Autoincrement minor version uses: hmanzur/actions-set-secret@v2.0.0
run: | with:
echo "NEW_MINOR=$((${{ secrets.MINOR }}+1))" >> $GITHUB_ENV name: 'MINOR'
- value: ${{ env.NEW_MINOR }}
name: Update minor version repository: ${{ github.repository }}
uses: hmanzur/actions-set-secret@v2.0.0 token: ${{ secrets.REPO_ACCESS_TOKEN }}
with:
name: 'MINOR'
value: ${{ env.NEW_MINOR }}
repository: ${{ github.repository }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
mirror: mirror:
runs-on: ubuntu-latest runs-on: ubuntu-latest