|
|
|
@ -12,9 +12,9 @@ jobs:
|
|
|
|
|
sync-common:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
env:
|
|
|
|
|
GITHUB_BOT_USERNAME: ${{ secrets.TREZOR_BOT_USERNAME }}
|
|
|
|
|
GITHUB_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
|
|
|
|
GITHUB_BOT_EMAIL: ${{ secrets.TREZOR_BOT_EMAIL }}
|
|
|
|
|
BOT_TOKEN: ${{ secrets.BOT_TOKEN_COMMON_FINE }}
|
|
|
|
|
BOT_USERNAME: ${{ secrets.TREZOR_BOT_USERNAME }}
|
|
|
|
|
BOT_EMAIL: ${{ secrets.TREZOR_BOT_EMAIL }}
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout repository
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
@ -23,20 +23,21 @@ jobs:
|
|
|
|
|
|
|
|
|
|
- name: Copy git-filter and script to temporary directory
|
|
|
|
|
run: |
|
|
|
|
|
cp ./ci/common_sync/git-filter-repo/git-filter-repo ${{runner.temp}}/common_repo_sync.sh
|
|
|
|
|
cp ./ci/common_sync/git-filter-repo/git-filter-repo ${{runner.temp}}/git-filter-repo
|
|
|
|
|
cp ./ci/common_sync/common_repo_sync.sh ${{runner.temp}}/common_repo_sync.sh
|
|
|
|
|
cp ./ci/common_sync/git-filter-repo ${{runner.temp}}/git-filter-repo
|
|
|
|
|
|
|
|
|
|
- name: Add git-filter-repo to PATH
|
|
|
|
|
- name: Confiugre git user
|
|
|
|
|
run: |
|
|
|
|
|
echo "Adding git-filter-repo to PATH"
|
|
|
|
|
echo '${{ runner.temp }}/ci/common_sync/git-filter-repo' >> $GITHUB_PATH
|
|
|
|
|
git config --global user.name "${BOT_USERNAME}"
|
|
|
|
|
git config --global user.email "${BOT_EMAIL}"
|
|
|
|
|
|
|
|
|
|
- name: Configure git user
|
|
|
|
|
- name: Add git-filter-repo to PATH
|
|
|
|
|
run: |
|
|
|
|
|
git config --global user.name $GITHUB_BOT_USERNAME
|
|
|
|
|
git config --global user.email $GITHUB_BOT_EMAIL
|
|
|
|
|
echo "Adding git-filter-repo to PATH"
|
|
|
|
|
echo '${{runner.temp}}' >> $GITHUB_PATH
|
|
|
|
|
|
|
|
|
|
- name: Sync trezor-common repository
|
|
|
|
|
run: |
|
|
|
|
|
echo "Synchronizing common with the trezor-common repository"
|
|
|
|
|
.${{ runner.temp }}/common_repo_sync.sh
|
|
|
|
|
git config --unset-all http.https://github.com/.extraheader
|
|
|
|
|
${{ runner.temp }}/common_repo_sync.sh
|
|
|
|
|