Skip to content

Commit

Permalink
.github: use full GITHUB_REF path as target directories
Browse files Browse the repository at this point in the history
This avoids conflicts for pull request builds.

Signed-off-by: Octavian Purdila <tavi@cs.pub.ro>
  • Loading branch information
tavip committed Mar 2, 2020
1 parent 8b2db19 commit eb99417
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@ jobs:
run: |
set -x
env
export PUB_PATH=$(basename $GITHUB_REF)
git clone --depth=1 git@github.com:linux-kernel-labs/linux-kernel-labs.github.io.git
cd linux-kernel-labs.github.io
rm -rf $PUB_PATH
mkdir -p $PUB_PATH
cp -r ../Documentation/output/teaching/* $PUB_PATH/
rm -rf $GITHUB_REF
mkdir -p $GITHUB_REF
cp -r ../Documentation/output/teaching/* $GITHUB_REF
git config --global user.email "github.actions@linux-kernel-labs.gihub.io"
git config --global user.name "GitHub Actions"
git add $PUB_PATH
git commit --allow-empty -m "Publish $PUB_PATH (built from linux-kernel-labs/linux/$GITHUB_REF)"
git add $GITHUB_REF
git commit --allow-empty -m "Publish $GITHUB_REF"
git push

0 comments on commit eb99417

Please sign in to comment.