Merge pull request #170 from guardrail-dev/dependabot/gradle/dev.guar… #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |