Skip to content

Merge pull request #170 from guardrail-dev/dependabot/gradle/dev.guar… #58

Merge pull request #170 from guardrail-dev/dependabot/gradle/dev.guar…

Merge pull request #170 from guardrail-dev/dependabot/gradle/dev.guar… #58

Workflow file for this run

name: Tag release
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8' ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Gradle wrapper validation
uses: gradle/[email protected]
- name: Set up JDK
uses: actions/[email protected]
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
- name: print Java version
run: java -version
- uses: actions/[email protected]
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Guess next version based on the library version
id: guessversion
run: |
source scripts/next-version.sh
echo "Next release target: ${version}"
echo "::set-output name=exists::${exists}"
echo "VERSION=${version}" >> $GITHUB_ENV
- name: Publish release notes
if: steps.guessversion.outputs.exists == 0
uses: release-drafter/release-drafter@v5
with:
name: "v${{ env.VERSION }}"
tag: "v${{ env.VERSION }}"
version: "v${{ env.VERSION }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}