Skip to content

Commit

Permalink
Retry
Browse files Browse the repository at this point in the history
  • Loading branch information
GogiPuttar committed Aug 16, 2024
1 parent 2dfdc22 commit 1be290a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 33 deletions.
1 change: 0 additions & 1 deletion .github/workflows/check-token-validity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:

steps:
- name: Check if token is valid
TOKEN: ${{ secrets.OTHER_REPO_PAT }}
run: |
RESPONSE=$(curl -H "Authorization: token ${{ secrets.OTHER_REPO_PAT }}" \
-H "Accept: application/vnd.github.v3+json" \
Expand Down
68 changes: 36 additions & 32 deletions .github/workflows/update-arm-config-directory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."

0 comments on commit 1be290a

Please sign in to comment.