Gradle initScript release #16
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 | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
update-reference: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Generate reference script with version | |
run: ./gradlew promote -Pversion=${{ inputs.version }} | |
env: | |
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_SOLUTIONS_ACCESS_TOKEN }} | |
- name: Commit & push changes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: '[bot] Update develocity-injection reference script as ${{ inputs.version }}' | |
tagging_message: '${{ inputs.version }}' | |
update-gradle-actions: | |
needs: [update-reference] | |
uses: ./.github/workflows/gradle-send-update-pr.yml | |
with: | |
version: ${{ inputs.version }} | |
repository: 'gradle/actions' | |
script-location: 'sources/src/resources/init-scripts/gradle-actions.inject-develocity.init.gradle' | |
secrets: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
update-develocity-bamboo-plugin: | |
needs: [update-reference] | |
uses: ./.github/workflows/gradle-send-update-pr.yml | |
with: | |
version: ${{ inputs.version }} | |
repository: 'bigdaz/develocity-bamboo-plugin' | |
script-location: 'src/main/resources/develocity/gradle/develocity-init-script.gradle' | |
secrets: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} |