Skip to content

Update dependency org.jetbrains.kotlin:kotlin-gradle-plugin to v2.0.20 #153

Update dependency org.jetbrains.kotlin:kotlin-gradle-plugin to v2.0.20

Update dependency org.jetbrains.kotlin:kotlin-gradle-plugin to v2.0.20 #153

Workflow file for this run

name: build
on:
pull_request: {}
push:
branches:
- '*'
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: gradle/actions/wrapper-validation@v4
- run: ./gradlew build
- uses: actions/upload-artifact@v4
with:
name: dependency-tree-diff.jar
path: build/dependency-tree-diff.jar
if-no-files-found: error
- name: Extract release notes
id: release_notes
if: startsWith(github.ref, 'refs/tags/')
uses: ffurrer2/extract-release-notes@v2
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.release_notes.outputs.release_notes }}
files: build/dependency-tree-diff.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get version
id: get_version
if: startsWith(github.ref, 'refs/tags/')
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}
- name: Set SHA
id: shasum
if: startsWith(github.ref, 'refs/tags/')
run: echo ::set-output name=sha::"$(shasum -a 256 build/dependency-tree-diff.jar | awk '{printf $1}')"
- name: Bump Brew
if: startsWith(github.ref, 'refs/tags/')
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GH_HOMEBREW_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "github-actions"
# Update to ensure we have the latest version which supports arbitrary default branches.
brew update
brew tap JakeWharton/repo
brew bump-formula-pr -f --version=${{ steps.get_version.outputs.version }} --no-browse --no-audit \
--sha256=${{ steps.shasum.outputs.sha }} \
--url="https://github.com/JakeWharton/dependency-tree-diff/releases/download/${{ steps.get_version.outputs.version }}/dependency-tree-diff.jar" \
JakeWharton/repo/dependency-tree-diff