Skip to content

chore(deps): update actions/github-script action to v8 (#2402) #5167

chore(deps): update actions/github-script action to v8 (#2402)

chore(deps): update actions/github-script action to v8 (#2402) #5167

Workflow file for this run

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 }}

Check failure on line 16 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 16, Col: 30): Invalid secret, DEVELOCITY_ACCESS_KEY is not defined in the referenced workflow.
# 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 }}