Skip to content

Merge pull request #160 from guardrail-dev/dependabot/github_actions/… #52

Merge pull request #160 from guardrail-dev/dependabot/github_actions/…

Merge pull request #160 from guardrail-dev/dependabot/github_actions/… #52

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@v3
with:
fetch-depth: 0
- name: Gradle wrapper validation
uses: gradle/wrapper-validation-action@v1.0.6
- name: Set up JDK
uses: actions/setup-java@v3.12.0
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
- name: print Java version
run: java -version
- uses: actions/cache@v3.3.1
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 }}