Skip to content

Commit 013b4a4

Browse files
Use env vars to pass data to scripts
1 parent d3039f2 commit 013b4a4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/changelog-ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,11 @@ jobs:
5555
# newly-introduced changes by comparing its head against that of
5656
# the base. We still won't actually run code from that copy.
5757
- name: Fetch base from PR copy
58+
env:
59+
BASE_REF: ${{ github.base_ref }}
5860
run: |
5961
cd pr
60-
git fetch origin ${{ github.base_ref }}
62+
git fetch origin "$BASE_REF"
6163
6264
- name: Install Python
6365
uses: actions/setup-python@v5
@@ -79,9 +81,11 @@ jobs:
7981
GITHUB_TOKEN: ${{ github.token }}
8082
TARGET_SHA: ${{ github.event.pull_request.head.sha }}
8183
PR_TITLE: ${{ github.event.pull_request.title }}
84+
PR_NUMBER: ${{ github.event.pull_request.number }}
85+
REPO_DIR: ${{ github.workspace }}
8286
run: |
8387
cd base/.changes
8488
uv run amend \
8589
--review-comment \
86-
--pull-request-number ${{ github.event.pull_request.number }} \
87-
--repository-dir ${{ github.workspace }}/pr
90+
--pull-request-number "$REPO_NUMBER" \
91+
--repository-dir "$REPO_DIR/pr"

0 commit comments

Comments
 (0)