feat(remove_old_metadata): recursive checkout
This commit is contained in:
parent
1c3228a2f5
commit
a15807aaf0
|
@ -104,25 +104,27 @@ jobs:
|
||||||
sudo gem install mdl -v 0.9.0
|
sudo gem install mdl -v 0.9.0
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
- name: Create Build Environment
|
- name: Create Build Environment
|
||||||
run: cmake -E make_directory -B "${{ github.workspace }}/build"
|
run: cmake -E make_directory -B "${{ github.workspace }}/build"
|
||||||
|
|
||||||
- name: Get AwesomeWM
|
- name: Get Awesome website target repo
|
||||||
env:
|
env:
|
||||||
APIDOC_TOKEN: ${{ secrets.AWESOME_ROBOT_TOKEN || github.token }}
|
APIDOC_TOKEN: ${{ secrets.AWESOME_ROBOT_TOKEN || github.token }}
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
git clone \
|
git clone \
|
||||||
https://${APIDOC_TOKEN}@github.com/awesomeWM/awesomeWM.github.io \
|
https://${APIDOC_TOKEN}@github.com/awesomeWM/awesomeWM.github.io \
|
||||||
"${{ github.workspace }}/src" 2>&1 | sed "s/$APIDOC_TOKEN/APIDOC_TOKEN/g"
|
"${{ github.workspace }}/build" 2>&1 | sed "s/$APIDOC_TOKEN/APIDOC_TOKEN/g"
|
||||||
if [ "${{ github.event_name }}" != 'pull_request' ]; then
|
if [ "${{ github.event_name }}" != 'pull_request' ]; then
|
||||||
branch="${{ github.head_ref || github.ref_name }} "
|
branch="${{ github.head_ref || github.ref_name }} "
|
||||||
else
|
else
|
||||||
branch="pr-${{ github.event.issue.number }}"
|
branch="pr-${{ github.event.pull_request.number }}"
|
||||||
fi
|
fi
|
||||||
if [ "$branch" != master ]; then
|
if [ "$branch" != master ]; then
|
||||||
cd "${{ github.workspace }}/src"
|
cd "${{ github.workspace }}/build"
|
||||||
if ! git checkout -b "$branch" "origin/$branch"; then
|
if ! git checkout -b "$branch" "origin/$branch"; then
|
||||||
git checkout -b "$branch"
|
git checkout -b "$branch"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue