fix(gh: www): awesomewm checkout dir
This commit is contained in:
parent
a0c1cc1b87
commit
711482888c
|
@ -121,14 +121,14 @@ jobs:
|
|||
set -e
|
||||
git clone \
|
||||
https://${APIDOC_TOKEN}@github.com/awesomeWM/awesomeWM.github.io \
|
||||
"${{ github.workspace }}/build" 2>&1 | sed "s/$APIDOC_TOKEN/APIDOC_TOKEN/g"
|
||||
"${{ github.workspace }}/src" 2>&1 | sed "s/$APIDOC_TOKEN/APIDOC_TOKEN/g"
|
||||
if [ "${{ github.event_name }}" != 'pull_request' ]; then
|
||||
branch="${{ github.head_ref || github.ref_name }} "
|
||||
else
|
||||
branch="pr-${{ steps.pr.outputs.pull_request_number }}"
|
||||
fi
|
||||
if [ "$branch" != master ]; then
|
||||
cd "${{ github.workspace }}/build"
|
||||
cd "${{ github.workspace }}/src"
|
||||
if ! git checkout -b "$branch" "origin/$branch"; then
|
||||
git checkout -b "$branch"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue