Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 2741058

Browse files
committed
Fetch env file from pr
1 parent bd9154d commit 2741058

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/autotest.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ jobs:
2222
steps:
2323
- name: Cloning repository
2424
uses: actions/checkout@v4
25+
- name: Get Env file
26+
uses: actions/checkout@v4
27+
with:
28+
ref: ${{ github.head_ref }}
29+
sparse-checkout: |
30+
env.sh
31+
sparse-checkout-cone-mode: false
2532
- name: Prepare environment
2633
run: |
2734
chmod -R +x .

env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
PROTOCOL=0
1111

1212
# Don't modify the next line
13-
echo "PROTOCOL=${PROTOCOL}}" >> "$GITHUB_ENV"
13+
echo "PROTOCOL=${PROTOCOL}" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)