fix(gh: www): awesomewm checkout dir

This commit is contained in:
actionless 2022-06-26 21:42:26 +02:00
parent a0c1cc1b87
commit 711482888c
1 changed files with 2 additions and 2 deletions

View File

@ -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