Skip to content

Commit eb99417

Browse files
committed
.github: use full GITHUB_REF path as target directories
This avoids conflicts for pull request builds. Signed-off-by: Octavian Purdila <[email protected]>
1 parent 8b2db19 commit eb99417

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@ jobs:
2929
run: |
3030
set -x
3131
env
32-
export PUB_PATH=$(basename $GITHUB_REF)
3332
git clone --depth=1 [email protected]:linux-kernel-labs/linux-kernel-labs.github.io.git
3433
cd linux-kernel-labs.github.io
35-
rm -rf $PUB_PATH
36-
mkdir -p $PUB_PATH
37-
cp -r ../Documentation/output/teaching/* $PUB_PATH/
34+
rm -rf $GITHUB_REF
35+
mkdir -p $GITHUB_REF
36+
cp -r ../Documentation/output/teaching/* $GITHUB_REF
3837
git config --global user.email "[email protected]"
3938
git config --global user.name "GitHub Actions"
40-
git add $PUB_PATH
41-
git commit --allow-empty -m "Publish $PUB_PATH (built from linux-kernel-labs/linux/$GITHUB_REF)"
39+
git add $GITHUB_REF
40+
git commit --allow-empty -m "Publish $GITHUB_REF"
4241
git push

0 commit comments

Comments
 (0)