Skip to content

Gradle initScript release #44

Gradle initScript release

Gradle initScript release #44

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-gitlab-templates:
needs: [update-reference]
uses: ./.github/workflows/gradle-send-update-pr.yml
with:
version: ${{ inputs.version }}
repository: 'bigdaz/develocity-gitlab-templates'
script-location: 'src/gradle/init-scripts/develocity-injection.init.gradle'
post-process: './build.sh'
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
update-jenkins-gradle-plugin:
needs: [update-reference]
uses: ./.github/workflows/gradle-send-update-pr.yml
with:
version: ${{ inputs.version }}
repository: 'bigdaz/jenkins-gradle-plugin'
script-location: 'src/main/resources/hudson/plugins/gradle/injection/init-script.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: 'gradle/develocity-bamboo-plugin'
script-location: 'src/main/resources/develocity/gradle/develocity-init-script.gradle'
post-process: |
sed -i "s/def ENV_VAR_PREFIX = ''/def ENV_VAR_PREFIX = 'bamboo_'/" src/main/resources/develocity/gradle/develocity-init-script.gradle
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
update-develocity-teamcity-plugin:
needs: [update-reference]
uses: ./.github/workflows/gradle-send-update-pr.yml
with:
version: ${{ inputs.version }}
repository: 'bigdaz/teamcity-build-scan-plugin'
script-location: 'agent/src/main/resources/build-scan-init.gradle'
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}