|
22 | 22 | env: |
23 | 23 | PRERELEASE_VERSION: ${{ github.event.inputs.prerelease_version }} |
24 | 24 | run: | |
25 | | - if [[ $GITHUB_REF_NAME != main ]]; then |
26 | | - echo this workflow should only be run against main |
27 | | - exit 1 |
28 | | - fi |
29 | | -
|
30 | 25 | if ! grep --quiet "^## Unreleased$" CHANGELOG.md; then |
31 | 26 | echo the change log is missing an \"Unreleased\" section |
32 | 27 | exit 1 |
|
48 | 43 | runs-on: ubuntu-latest |
49 | 44 | needs: prereqs |
50 | 45 | steps: |
| 46 | + - uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6 |
| 47 | + id: otelbot-token |
| 48 | + with: |
| 49 | + app-id: ${{ vars.OTELBOT_APP_ID }} |
| 50 | + private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }} |
| 51 | + permission-contents: write |
| 52 | + permission-pull-requests: write |
| 53 | + permission-workflows: write |
| 54 | + |
51 | 55 | - uses: actions/checkout@v4 |
| 56 | + with: |
| 57 | + token: ${{ steps.otelbot-token.outputs.token }} |
52 | 58 |
|
53 | 59 | - name: Install toml |
54 | 60 | run: pip install toml |
@@ -93,15 +99,14 @@ jobs: |
93 | 99 | date=$(date "+%Y-%m-%d") |
94 | 100 | sed -Ei "s/^## Unreleased$/## Version ${STABLE_VERSION}\/${UNSTABLE_VERSION} ($date)/" CHANGELOG.md |
95 | 101 |
|
| 102 | + - name: Update contrib workflow ref |
| 103 | + run: | |
| 104 | + sed -Ei "s#open-telemetry/opentelemetry-python-contrib/.github/workflows/core_contrib_test.yml@main#open-telemetry/opentelemetry-python-contrib/.github/workflows/core_contrib_test.yml@${STABLE_VERSION}#" .github/workflows/ci.yml |
| 105 | + grep -Fq "core_contrib_test.yml@${STABLE_VERSION}" .github/workflows/ci.yml |
| 106 | +
|
96 | 107 | - name: Use CLA approved github bot |
97 | 108 | run: .github/scripts/use-cla-approved-github-bot.sh |
98 | 109 |
|
99 | | - - uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6 |
100 | | - id: otelbot-token |
101 | | - with: |
102 | | - app-id: ${{ vars.OTELBOT_APP_ID }} |
103 | | - private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }} |
104 | | - |
105 | 110 | - name: Create pull request against the release branch |
106 | 111 | id: create_release_branch_pr |
107 | 112 | env: |
|
0 commit comments