mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-19 03:40:59 +00:00
ci: migrate trezor-common sync to github actions
This commit is contained in:
parent
3bfc0b61e5
commit
11b923959a
24
.github/workflows/bot-common-sync.yml
vendored
Normal file
24
.github/workflows/bot-common-sync.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: "[Bot] sync to trezor-common repository"
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync-common:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Sync trezor-common repository
|
||||||
|
env:
|
||||||
|
GITHUB_BOT_USERNAME: ${{ secrets.TREZOR_BOT_USERNAME }}
|
||||||
|
GITHUB_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
|
run: |
|
||||||
|
echo "Synchronizing common with the trezor-common repository"
|
||||||
|
./ci/common_sync/common_repo_sync.sh
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
GH_USER="$GH_TREZOR_BOT"
|
GH_USER="$GITHUB_BOT_USERNAME"
|
||||||
GH_TOKEN="$GH_TOKEN_COMMON_SYNC"
|
GH_TOKEN="$GITHUB_BOT_TOKEN"
|
||||||
|
|
||||||
# checkout to temporary branch
|
# checkout to temporary branch
|
||||||
git checkout -B tmp
|
git checkout -B tmp
|
||||||
|
@ -324,20 +324,3 @@ sync emulators to aws:
|
|||||||
- branches # run for tags only
|
- branches # run for tags only
|
||||||
tags:
|
tags:
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
# common sync to trezor-common
|
|
||||||
|
|
||||||
common sync:
|
|
||||||
stage: deploy
|
|
||||||
variables:
|
|
||||||
GIT_SUBMODULE_STRATEGY: "none"
|
|
||||||
GIT_STRATEGY: clone # clone entire repo instead of reusing workspace
|
|
||||||
GIT_DEPTH: 0 # avoid shallow clone
|
|
||||||
only:
|
|
||||||
- schedules
|
|
||||||
interruptible: false
|
|
||||||
needs: []
|
|
||||||
before_script: [] # no poetry
|
|
||||||
script:
|
|
||||||
- echo "Synchronizing common with the trezor-common repository"
|
|
||||||
- ./ci/common_sync/common_repo_sync.sh
|
|
||||||
|
Loading…
Reference in New Issue
Block a user