@@ -10,36 +10,29 @@ jobs:
1010 runs-on : ubuntu-latest
1111
1212 steps :
13- # Repository check
14- - name : Check repository
15- run : |
16- if [ "${GITHUB_REPOSITORY}" != "utiasDSL/ARLDM-Advanced-Robot-Learning-And-Decision-Making" ]; then
17- echo "This workflow is intendend to only run in the public repository. Exiting."
18- exit 0
19- fi
20-
21- - name : Configure git
22- run : |
23- git config user.name "github-actions[bot]"
24- git config user.email "github-actions[bot]@noreply.github.com"
25-
2613 # Check for Merge conflicts
2714 - name : Start Merge
15+ if : ${{ github.repository == 'utiasDSL/ARLDM-Advanced-Robot-Learning-And-Decision-Making' }}
2816 run : |
2917 git clone https://x-access-token:${{ secrets.PRIVATE_REPO_ARLDM }}@github.com/utiasDSL/Advanced-Robot-Learning-and-Decision-Making-Programming-Exercises.git
3018 cd Advanced-Robot-Learning-and-Decision-Making-Programming-Exercises
3119
20+ git config user.name "github-actions[bot]"
21+ git config user.email "github-actions[bot]@noreply.github.com"
22+
3223 git remote add public https://x-access-token:${{ secrets.PRIVATE_REPO_ARLDM }}@github.com/utiasDSL/ARLDM-Advanced-Robot-Learning-And-Decision-Making.git
3324 git fetch public main
3425
3526 - name : Pick new commits
27+ if : ${{ github.repository == 'utiasDSL/ARLDM-Advanced-Robot-Learning-And-Decision-Making' }}
3628 run : |
3729 COMMITS=$(git log origin/main..public/main --invert-grep --grep='Publish repository' --pretty=format:"%H")
3830 for c in $COMMITS; do
3931 git cherry-pick $c || { echo "Cherry-pick failed for $c"; exit 1;" }
4032 done
4133
4234 - name : Check for conflicts
35+ if : ${{ github.repository == 'utiasDSL/ARLDM-Advanced-Robot-Learning-And-Decision-Making' }}
4336 run : |
4437 CONFLICT_FILES=$(git diff --name-only --diff-filter=U)
4538 if [ -n "$CONFLICT_FILES" ]; then
6053
6154 # Testing
6255 - name : Run pytest (Development)
56+ if : ${{ github.repository == 'utiasDSL/ARLDM-Advanced-Robot-Learning-And-Decision-Making' }}
6357 run : |
6458 docker run --rm \
6559 -v ${{ github.workspace }}:/workspaces/Advanced-Robot-Learning-and-Decision-Making-Programming-Exercises \
7872 "
7973
8074 - name : Run pytest (Application)
75+ if : ${{ github.repository == 'utiasDSL/ARLDM-Advanced-Robot-Learning-And-Decision-Making' }}
8176 run : |
8277 docker run --rm \
8378 -v ${{ github.workspace }}:/workspaces/Advanced-Robot-Learning-and-Decision-Making-Programming-Exercises \
0 commit comments