Gradle initScript release #72
Workflow file for this run
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: Gradle initScript release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
type: string | |
required: true | |
jobs: | |
update-reference: | |
permissions: | |
contents: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
# - name: Import GPG key | |
# uses: crazy-max/ghaction-import-gpg@v6 | |
# with: | |
# gpg_private_key: ${{ secrets.GH_BOT_PGP_PRIVATE_KEY }} | |
# passphrase: ${{ secrets.GH_BOT_PGP_PASSPHRASE }} | |
# git_user_signingkey: true | |
# git_commit_gpgsign: true | |
# git_config_global: true | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
develocity-access-key: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }} | |
- name: Generate reference script with version | |
run: ./gradlew promote -Pversion=${{ inputs.version }} | |
# If there are no changes, this action will not create a pull request | |
- name: Create pull request for release | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
branch: bot/wrapper-checksums-update | |
commit-message: Release init-script with version ${{ inputs.version }} | |
title: Release init-script with version ${{ inputs.version }} | |
# Note: Unfortunately this action cannot trigger the regular workflows for the PR automatically, see | |
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs | |
# Therefore suggest below to close and then reopen the PR | |
body: | | |
Automatically generated pull request to promote `src/main/resources/develocity-injection.init.gradle` as the reference. | |
# | |
# - name: Commit & push changes | |
# uses: stefanzweifel/git-auto-commit-action@v5 | |
# with: | |
# commit_author: bot-githubaction <[email protected]> | |
# commit_user_name: bot-githubaction | |
# commit_user_email: [email protected] | |
# commit_message: '[bot] Promote init-script as ${{ inputs.version }}' | |
# tagging_message: '${{ inputs.version }}' |