Skip to content

Commit a57e3b7

Browse files
author
github-actions[bot]
committed
Publish repository: Wed Oct 22 08:27:10 UTC 2025
1 parent af9cbc6 commit a57e3b7

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/public_merge_check.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -60,6 +53,7 @@ jobs:
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 \
@@ -78,6 +72,7 @@ jobs:
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

Comments
 (0)