Skip to content

Commit 42524d1

Browse files
committed
test again
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
1 parent c672a67 commit 42524d1

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

.github/workflows/prepare-release-branch.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ jobs:
4343
runs-on: ubuntu-latest
4444
needs: prereqs
4545
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
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
5454

5555
- uses: actions/checkout@v4
5656
with:
57-
token: ${{ steps.otelbot-token.outputs.token }}
57+
token: ${{ secrets.FORK_RELEASE_PAT }}
5858

5959
- name: Install toml
6060
run: pip install toml
@@ -110,8 +110,8 @@ jobs:
110110
- name: Create pull request against the release branch
111111
id: create_release_branch_pr
112112
env:
113-
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
114-
GITHUB_TOKEN: ${{ steps.otelbot-token.outputs.token }}
113+
# not using the default GITHUB_TOKEN since pull requests from that token do not run workflows
114+
GITHUB_TOKEN: ${{ secrets.FORK_RELEASE_PAT }}
115115
run: |
116116
message="Prepare release ${STABLE_VERSION}/${UNSTABLE_VERSION}"
117117
branch="otelbot/prepare-release-${STABLE_VERSION}-${UNSTABLE_VERSION}"
@@ -124,12 +124,12 @@ jobs:
124124
--base $RELEASE_BRANCH_NAME)
125125
echo "pr_url=$pr_url" >> $GITHUB_OUTPUT
126126
127-
- name: Add prepare-release label to PR
128-
if: steps.create_release_branch_pr.outputs.pr_url != ''
129-
env:
130-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
131-
run: |
132-
gh pr edit ${{ steps.create_release_branch_pr.outputs.pr_url }} --add-label "prepare-release"
127+
# - name: Add prepare-release label to PR
128+
# if: steps.create_release_branch_pr.outputs.pr_url != ''
129+
# env:
130+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
131+
# run: |
132+
# gh pr edit ${{ steps.create_release_branch_pr.outputs.pr_url }} --add-label "prepare-release"
133133

134134
create-pull-request-against-main:
135135
permissions:
@@ -222,9 +222,9 @@ jobs:
222222
--base main)
223223
echo "pr_url=$pr_url" >> $GITHUB_OUTPUT
224224
225-
- name: Add prepare-release label to PR
226-
if: steps.create_main_pr.outputs.pr_url != ''
227-
env:
228-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
229-
run: |
230-
gh pr edit ${{ steps.create_main_pr.outputs.pr_url }} --add-label "prepare-release"
225+
# - name: Add prepare-release label to PR
226+
# if: steps.create_main_pr.outputs.pr_url != ''
227+
# env:
228+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
229+
# run: |
230+
# gh pr edit ${{ steps.create_main_pr.outputs.pr_url }} --add-label "prepare-release"

0 commit comments

Comments
 (0)