mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-20 05:18:08 +00:00
ci: fix trezor-common sync action
This commit is contained in:
parent
777ad11bec
commit
d1da8aa9e3
26
.github/workflows/bot-common-sync.yml
vendored
26
.github/workflows/bot-common-sync.yml
vendored
@ -3,6 +3,7 @@ name: "[Bot] sync to trezor-common repository"
|
|||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * *"
|
- cron: "0 0 * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@ -10,15 +11,32 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
sync-common:
|
sync-common:
|
||||||
runs-on: ubuntu-latest
|
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 }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
|
- name: Add git-filter-repo to PATH
|
||||||
|
run: |
|
||||||
|
echo "Adding git-filter-repo to PATH"
|
||||||
|
echo '${{ runner.temp }}/ci/common_sync/git-filter-repo' >> $GITHUB_PATH
|
||||||
|
|
||||||
|
- name: Configure git user
|
||||||
|
run: |
|
||||||
|
git config --global user.name $GITHUB_BOT_USERNAME
|
||||||
|
git config --global user.email $GITHUB_BOT_EMAIL
|
||||||
|
|
||||||
- name: Sync trezor-common repository
|
- name: Sync trezor-common repository
|
||||||
env:
|
|
||||||
GITHUB_BOT_USERNAME: ${{ secrets.TREZOR_BOT_USERNAME }}
|
|
||||||
GITHUB_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
|
||||||
run: |
|
run: |
|
||||||
echo "Synchronizing common with the trezor-common repository"
|
echo "Synchronizing common with the trezor-common repository"
|
||||||
./ci/common_sync/common_repo_sync.sh
|
.${{ runner.temp }}/common_repo_sync.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user