Use new org secret (#7759)
This commit is contained in:
parent
a2d5302acc
commit
b72e28a1a8
|
@ -28,7 +28,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
NUMBER: ${{ github.event.inputs.number }}
|
NUMBER: ${{ github.event.inputs.number }}
|
||||||
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
|
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
|
||||||
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
|
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
commit=$(gh pr view $NUMBER --json mergeCommit --jq .mergeCommit.oid)
|
commit=$(gh pr view $NUMBER --json mergeCommit --jq .mergeCommit.oid)
|
||||||
title=$(gh pr view $NUMBER --json title --jq .title)
|
title=$(gh pr view $NUMBER --json title --jq .title)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
name: Comment driven automations
|
name: Comment driven automations
|
||||||
on:
|
on:
|
||||||
issue_comment:
|
issue_comment:
|
||||||
types: [created]
|
types: [ created ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
comment-driven-automation:
|
comment-driven-automation:
|
||||||
|
@ -56,7 +56,7 @@ jobs:
|
||||||
- name: Run command
|
- name: Run command
|
||||||
env:
|
env:
|
||||||
NUMBER: ${{ github.event.issue.number }}
|
NUMBER: ${{ github.event.issue.number }}
|
||||||
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
|
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
available_commands="Available commands:
|
available_commands="Available commands:
|
||||||
* \`@opentelemetrybot spotless\` - runs \`./gradlew spotlessApply\`
|
* \`@opentelemetrybot spotless\` - runs \`./gradlew spotlessApply\`
|
||||||
|
|
|
@ -49,7 +49,7 @@ jobs:
|
||||||
- name: Create pull request
|
- name: Create pull request
|
||||||
env:
|
env:
|
||||||
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
|
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
|
||||||
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
|
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
message="Prepare release $VERSION"
|
message="Prepare release $VERSION"
|
||||||
branch="opentelemetrybot/prepare-release-${VERSION}"
|
branch="opentelemetrybot/prepare-release-${VERSION}"
|
||||||
|
|
|
@ -61,7 +61,7 @@ jobs:
|
||||||
- name: Create pull request against the release branch
|
- name: Create pull request against the release branch
|
||||||
env:
|
env:
|
||||||
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
|
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
|
||||||
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
|
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
message="Prepare release $VERSION"
|
message="Prepare release $VERSION"
|
||||||
branch="opentelemetrybot/prepare-release-${VERSION}"
|
branch="opentelemetrybot/prepare-release-${VERSION}"
|
||||||
|
@ -110,7 +110,7 @@ jobs:
|
||||||
- name: Create pull request against main
|
- name: Create pull request against main
|
||||||
env:
|
env:
|
||||||
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
|
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
|
||||||
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
|
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
message="Update version to $NEXT_VERSION"
|
message="Update version to $NEXT_VERSION"
|
||||||
body="Update version to \`$NEXT_VERSION\`."
|
body="Update version to \`$NEXT_VERSION\`."
|
||||||
|
|
|
@ -195,7 +195,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ needs.release.outputs.version }}
|
VERSION: ${{ needs.release.outputs.version }}
|
||||||
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
|
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
|
||||||
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
|
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
if git diff --quiet; then
|
if git diff --quiet; then
|
||||||
if [[ $VERSION == *.0 ]]; then
|
if [[ $VERSION == *.0 ]]; then
|
||||||
|
@ -224,7 +224,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
version: ${{ needs.release.outputs.version }}
|
version: ${{ needs.release.outputs.version }}
|
||||||
secrets:
|
secrets:
|
||||||
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
OPENTELEMETRYBOT_GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
|
||||||
|
|
||||||
create-website-pull-request:
|
create-website-pull-request:
|
||||||
needs: release
|
needs: release
|
||||||
|
@ -232,4 +232,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
version: ${{ needs.release.outputs.version }}
|
version: ${{ needs.release.outputs.version }}
|
||||||
secrets:
|
secrets:
|
||||||
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
OPENTELEMETRYBOT_GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
|
||||||
|
|
|
@ -7,7 +7,7 @@ on:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
secrets:
|
secrets:
|
||||||
BOT_TOKEN:
|
OPENTELEMETRYBOT_GITHUB_TOKEN:
|
||||||
required: true
|
required: true
|
||||||
# to help with partial release build failures
|
# to help with partial release build failures
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -23,7 +23,7 @@ jobs:
|
||||||
- name: Sync opentelemetry-operator fork
|
- name: Sync opentelemetry-operator fork
|
||||||
env:
|
env:
|
||||||
# this is the personal access token used for "gh repo sync" below
|
# this is the personal access token used for "gh repo sync" below
|
||||||
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
|
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
# synchronizing the fork is fast, and avoids the need to fetch the full upstream repo
|
# synchronizing the fork is fast, and avoids the need to fetch the full upstream repo
|
||||||
# (fetching the upstream repo with "--depth 1" would lead to "shallow update not allowed"
|
# (fetching the upstream repo with "--depth 1" would lead to "shallow update not allowed"
|
||||||
|
@ -36,7 +36,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
repository: opentelemetrybot/opentelemetry-operator
|
repository: opentelemetrybot/opentelemetry-operator
|
||||||
# this is the personal access token used for "git push" below
|
# this is the personal access token used for "git push" below
|
||||||
token: ${{ secrets.BOT_TOKEN }}
|
token: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Update version
|
- name: Update version
|
||||||
env:
|
env:
|
||||||
|
@ -54,7 +54,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ inputs.version }}
|
VERSION: ${{ inputs.version }}
|
||||||
# this is the personal access token used for "gh pr create" below
|
# this is the personal access token used for "gh pr create" below
|
||||||
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
|
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
message="Update the javaagent version to $VERSION"
|
message="Update the javaagent version to $VERSION"
|
||||||
# note that @open-telemetry/java-instrumentation-approvers cannot be used below
|
# note that @open-telemetry/java-instrumentation-approvers cannot be used below
|
||||||
|
|
|
@ -7,7 +7,7 @@ on:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
secrets:
|
secrets:
|
||||||
BOT_TOKEN:
|
OPENTELEMETRYBOT_GITHUB_TOKEN:
|
||||||
required: true
|
required: true
|
||||||
# to help with partial release build failures
|
# to help with partial release build failures
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -23,7 +23,7 @@ jobs:
|
||||||
- name: Sync opentelemetry.io fork
|
- name: Sync opentelemetry.io fork
|
||||||
env:
|
env:
|
||||||
# this is the personal access token used for "gh repo sync" below
|
# this is the personal access token used for "gh repo sync" below
|
||||||
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
|
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
# synchronizing the fork is fast, and avoids the need to fetch the full upstream repo
|
# synchronizing the fork is fast, and avoids the need to fetch the full upstream repo
|
||||||
# (fetching the upstream repo with "--depth 1" would lead to "shallow update not allowed"
|
# (fetching the upstream repo with "--depth 1" would lead to "shallow update not allowed"
|
||||||
|
@ -36,7 +36,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
repository: opentelemetrybot/opentelemetry.io
|
repository: opentelemetrybot/opentelemetry.io
|
||||||
# this is the personal access token used for "git push" below
|
# this is the personal access token used for "git push" below
|
||||||
token: ${{ secrets.BOT_TOKEN }}
|
token: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Update version
|
- name: Update version
|
||||||
env:
|
env:
|
||||||
|
@ -55,7 +55,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ inputs.version }}
|
VERSION: ${{ inputs.version }}
|
||||||
# this is the personal access token used for "gh pr create" below
|
# this is the personal access token used for "gh pr create" below
|
||||||
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
|
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
message="Update the Java instrumentation versions to $VERSION"
|
message="Update the Java instrumentation versions to $VERSION"
|
||||||
body="Update the Java instrumentation version to \`$VERSION\`."
|
body="Update the Java instrumentation version to \`$VERSION\`."
|
||||||
|
|
Loading…
Reference in New Issue