Stabilize service.peer.name and service.peer.namespace
#2709
Workflow file for this run
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: 'Prepare new PR' | |
| on: | |
| pull_request_target: | |
| types: [opened, synchronize] | |
| branches: [ 'main*' ] | |
| paths: ['.chloggen/*'] | |
| permissions: | |
| contents: read | |
| jobs: | |
| prepare-new-pr: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| if: ${{ github.repository_owner == 'open-telemetry' }} | |
| steps: | |
| # check out main | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| # sparse checkout to only get the .chloggen directory | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| path: prchangelog | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| sparse-checkout: .chloggen | |
| # we're going to run prepare-new-pr script from the main branch | |
| # to parse changelog record from the PR branch. | |
| - name: Run prepare-new-pr.sh | |
| run: ./.github/scripts/prepare-new-pr.sh | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR: ${{ github.event.pull_request.number }} | |
| PR_CHANGELOG_PATH: prchangelog |