chore(deps): update actions/github-script action to v8 (#2402) #5167
This file contains hidden or 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: Build | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - release/* | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| common: | ||
| uses: ./.github/workflows/build-common.yml | ||
| secrets: | ||
| DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} | ||
| # Link check is disabled for push events to avoid unnecessary CI failures | ||
| # (these failures will instead be captured by the daily scheduled run) | ||
| # and for release branches to avoid unnecessary maintenance if external links break | ||
| publish-snapshots: | ||
| needs: | ||
| - common | ||
| runs-on: ubuntu-latest | ||
| # skipping release branches because the versions in those branches are not snapshots | ||
| if: github.ref_name == 'main' && github.repository == 'open-telemetry/opentelemetry-java-contrib' | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| - name: Set up JDK for running Gradle | ||
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | ||
| with: | ||
| distribution: temurin | ||
| java-version: 21 | ||
| - name: Set up gradle | ||
| uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0 | ||
| - name: Build and publish snapshots | ||
| run: ./gradlew assemble publishToSonatype | ||
| env: | ||
| SONATYPE_USER: ${{ secrets.SONATYPE_USER }} | ||
| SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }} | ||
| GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
| GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }} | ||
| DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} | ||