-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2dfdc22
commit 1be290a
Showing
2 changed files
with
36 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,38 +10,42 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout robot-config repo | ||
uses: actions/checkout@v4 | ||
- name: Checkout robot-config repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Git | ||
run: | | ||
git config --global user.name 'Github Actions robot-config auto-bot' | ||
git config --global user.email '[email protected]' | ||
- name: Clone hebi-python-examples repo | ||
run: git clone https://github.com/HebiRobotics/hebi-python-examples.git | ||
|
||
- name: Replace arm's config directory in hebi-python-examples | ||
run: | | ||
rm -rf hebi-python-examples/kits/arm/config | ||
cp -r arms/config hebi-python-examples/kits/arm/config | ||
- name: Set up Git | ||
run: | | ||
git config --global user.name 'Github Actions robot-config auto-bot' | ||
git config --global user.email '[email protected]' | ||
- name: Clone hebi-python-examples repo | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.OTHER_REPO_PAT }} | ||
run: | | ||
git clone https://github.com/HebiRobotics/hebi-python-examples.git | ||
cd hebi-python-examples | ||
git config --local credential.helper store | ||
echo "https://${{ secrets.OTHER_REPO_PAT }}:@github.com" > ~/.git-credentials | ||
- name: Commit and Push changes to hebi-python-examples | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.OTHER_REPO_PAT }} | ||
run: | | ||
cd hebi-python-examples | ||
git checkout -b update-config | ||
git add kits/arm/config | ||
git commit -m "Update config directory from robot-config" | ||
git push origin update-config | ||
- name: Replace arm's config directory in hebi-python-examples | ||
run: | | ||
rm -rf hebi-python-examples/kits/arm/config | ||
cp -r arms/config hebi-python-examples/kits/arm/config | ||
- name: Create Pull Request for hebi-python-examples | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.OTHER_REPO_PAT }} | ||
commit-message: "Update config directory from robot-config" | ||
branch: update-config | ||
base: gogiputtar/testing_github_actions | ||
title: "Update config directory from robot-config" | ||
body: "This PR updates the config directory from the latest version in the robot-config repository." | ||
- name: Commit and Push changes to hebi-python-examples | ||
run: | | ||
cd hebi-python-examples | ||
git checkout -b update-config | ||
git add kits/arm/config | ||
git commit -m "Update config directory from robot-config" | ||
git push origin update-config | ||
- name: Create Pull Request for hebi-python-examples | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.OTHER_REPO_PAT }} | ||
commit-message: "Update config directory from robot-config" | ||
branch: update-config | ||
base: gogiputtar/testing_github_actions | ||
title: "Update config directory from robot-config" | ||
body: "This PR updates the config directory from the latest version in the robot-config repository." |