Skip to content

Commit

Permalink
use fondries action
Browse files Browse the repository at this point in the history
  • Loading branch information
mat83 committed Jun 27, 2024
1 parent d2226f6 commit 6ce5b2d
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,11 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
path: src-repo

- name: Checkout destination repository
run: |
git config user.name arduino-github
git config user.email github@arduino.cc
git config http.https://source.foundries.io/factories/arduino.extraheader "${FOUNDRIES_ACCESS_TOKEN}"
git clone -b ${BRANCH_NAME} ${DESTINATION_REPOSITORY} dest-repo
env:
DESTINATION_REPOSITORY: https://source.foundries.io/factories/arduino/lmp-manifest.git
BRANCH_NAME: ${{ github.base_ref || github.ref_name }}
FOUNDRIES_ACCESS_TOKEN: ${{ secrets.FOUNDRIES_ACCESS_TOKEN }}
- name: Sync repos
uses: foundriesio/mirror-action@main
with:
REMOTE: "https://source.foundries.io/factories/arduino/lmp-manifest.git"
GIT_ACCESS_TOKEN: ${{ secrets.FOUNDRIES_ACCESS_TOKEN }}
PUSH_ALL_REFS: "false"

- name: Push changes
run: |
cd dest-repo
echo "DEbug: branch $(git branch) selected"
echo "Branch variable is: ${BRANCH_NAME}"
env:
BRANCH_NAME: ${{ github.base_ref || github.ref_name }}

0 comments on commit 6ce5b2d

Please sign in to comment.