Skip to content

Bump io.opentelemetry.instrumentation:gradle-plugins from 2.30.0-alpha to 2.31.1-alpha in the opentelemetry group #4220

Bump io.opentelemetry.instrumentation:gradle-plugins from 2.30.0-alpha to 2.31.1-alpha in the opentelemetry group

Bump io.opentelemetry.instrumentation:gradle-plugins from 2.30.0-alpha to 2.31.1-alpha in the opentelemetry group #4220

name: Pull request helper
on:
pull_request_target:
permissions:
contents: write
jobs:
pull-request-helper:
if: github.event.pull_request.user.login == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
client-id: ${{ vars.AI_JAVA_HELPER_APP_CLIENT_ID }}
private-key: ${{ secrets.AI_JAVA_HELPER_APP_PRIVATE_KEY }}
permission-contents: write
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# an app token is used (instead of GITHUB_TOKEN) so that "git push" below triggers workflows
token: ${{ steps.app-token.outputs.token }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
with:
cache-read-only: true
- name: Set git user
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
# - name: Spotless
# env:
# NUMBER: ${{ github.event.issue.number }}
# run: |
# ./gradlew spotlessApply
# if git diff --quiet; then
# exit 0 # success
# fi
# git commit -a -m "./gradlew spotlessApply"
- name: Update license report
env:
NUMBER: ${{ github.event.issue.number }}
run: |
./gradlew generateLicenseReport
git add licenses
if git diff --cached --quiet; then
exit 0 # success
fi
git commit -m "./gradlew generateLicenseReport"
- name: Update lock files
env:
NUMBER: ${{ github.event.issue.number }}
run: |
./gradlew resolveAndLockAll --write-locks
git add "*.lockfile"
if git diff --cached --quiet; then
exit 0 # success
fi
git commit -m "./gradlew resolveAndLockAll --write-locks"
- name: Push
run: |
git push