Skip to content

Commit 9e8c13d

Browse files
author
Liudmila Molkova
committed
some fixes
1 parent e2271ee commit 9e8c13d

File tree

5 files changed

+9
-12
lines changed

5 files changed

+9
-12
lines changed

.github/workflows/package-prepare-patch-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
- name: Create pull request
104104
env:
105105
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
106-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
106+
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
107107
run: |
108108
message="Prepare patch release for ${PACKAGE_NAME} v${NEXT_VERSION}"
109109
branch="opentelemetrybot/patch-${PACKAGE_NAME}-version-to-v${NEXT_VERSION}"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
- name: Create pull request against the release branch
129129
env:
130130
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
131-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
131+
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
132132
run: |
133133
message="Prepare release for ${PACKAGE_NAME} v${VERSION}"
134134
branch="opentelemetrybot/prepare-${RELEASE_BRANCH_NAME}"
@@ -180,7 +180,7 @@ jobs:
180180
- name: Create pull request against main
181181
env:
182182
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
183-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
183+
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
184184
run: |
185185
message="Update ${PACKAGE_NAME} version to v${NEXT_VERSION}"
186186
body="Update \`${PACKAGE_NAME}\` version to v\`${NEXT_VERSION}\`."

.github/workflows/package-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ jobs:
135135
- name: Create pull request against main
136136
env:
137137
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
138-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
138+
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
139139
run: |
140140
message="Copy changelog updates from $GITHUB_REF_NAME"
141141
body="Copy changelog updates from \`$GITHUB_REF_NAME\`."

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- name: Create pull request
7070
env:
7171
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
72-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
7373
run: |
7474
message="Prepare release ${STABLE_VERSION}/${UNSTABLE_VERSION}"
7575
branch="opentelemetrybot/prepare-release-${STABLE_VERSION}-${UNSTABLE_VERSION}"

.github/workflows/release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
4343
echo "STABLE_VERSION=$stable_version" >> $GITHUB_ENV
4444
echo "UNSTABLE_VERSION=$unstable_version" >> $GITHUB_ENV
45-
45+
echo "CHANGELOG=CHANGELOG.md" >> $GITHUB_ENV
4646
echo "PRIOR_VERSION_WHEN_PATCH=$prior_version_when_patch" >> $GITHUB_ENV
4747
4848
- run: |
@@ -101,9 +101,7 @@ jobs:
101101
env:
102102
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103103
run: |
104-
CHANGELOG=CHANGELOG.md
105-
VERSION=${STABLE_VERSION}\/${UNSTABLE_VERSION}
106-
104+
echo "VERSION=${STABLE_VERSION}\/${UNSTABLE_VERSION}" >> $GITHUB_ENV
107105
./scripts/generate_release_notes.sh
108106
109107
- name: Create GitHub release
@@ -125,9 +123,8 @@ jobs:
125123
env:
126124
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
127125
run: |
128-
VERSION=${STABLE_VERSION}\/${UNSTABLE_VERSION}
129-
CHANGELOG=CHANGELOG.md
130-
RELEASE_TAG=$STABLE_VERSION
126+
echo "VERSION=${STABLE_VERSION}\/${UNSTABLE_VERSION}" >> $GITHUB_ENV
127+
echo "RELEASE_TAG=$STABLE_VERSION" >> $GITHUB_ENV
131128
./scripts/merge_changelog_to_main.sh
132129
133130
- name: Use CLA approved github bot

0 commit comments

Comments
 (0)