This repository has been archived by the owner on Jul 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'ledgerhq/master' into HEAD
- Loading branch information
Showing
27 changed files
with
1,024 additions
and
574 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: "Bot Transfer" | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
origin: | ||
description: "index of the seed to send from (e.g. 1)" | ||
required: true | ||
recipient: | ||
description: "index of the seed to receive the funds (e.g. 4)" | ||
required: true | ||
|
||
|
||
jobs: | ||
start-runner: | ||
name: "start ec2 instance (Linux)" | ||
if: ${{ always() }} | ||
uses: ledgerhq/actions/.github/workflows/start-linux-runner.yml@main | ||
secrets: | ||
CI_BOT_TOKEN: ${{ secrets.CI_BOT_TOKEN }} | ||
|
||
stop-runner: | ||
name: "stop ec2 instance (Linux)" | ||
needs: [start-runner, run-bot] | ||
uses: ledgerhq/actions/.github/workflows/stop-linux-runner.yml@main | ||
if: ${{ always() }} | ||
with: | ||
label: ${{ needs.start-runner.outputs.label }} | ||
ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }} | ||
secrets: | ||
CI_BOT_TOKEN: ${{ secrets.CI_BOT_TOKEN }} | ||
|
||
run-bot: | ||
runs-on: ${{ needs.start-runner.outputs.label }} | ||
needs: [start-runner] | ||
steps: | ||
- name: prepare runner | ||
run: | | ||
sudo growpart /dev/nvme0n1 1 | ||
sudo resize2fs /dev/nvme0n1p1 | ||
- uses: actions/checkout@v2 | ||
- name: Retrieving coin apps | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: LedgerHQ/coin-apps | ||
token: ${{ secrets.PAT }} | ||
path: coin-apps | ||
- uses: actions/setup-node@master | ||
with: | ||
node-version: 14.x | ||
- name: install yarn | ||
run: npm i -g yarn | ||
- name: pull docker image | ||
run: docker pull ghcr.io/ledgerhq/speculos | ||
- name: kill apt-get | ||
run: sudo killall -w apt-get apt || echo OK | ||
- name: Install linux deps | ||
run: sudo apt-get install -y jq | ||
- name: Install dependencies | ||
run: | | ||
yarn global add yalc | ||
yarn --frozen-lockfile | ||
yarn ci-setup-cli | ||
- name: BOT | ||
env: | ||
SEED: ${{ secrets[format('SEED{0}', github.event.inputs.origin)] }} | ||
SEED_RECIPIENT: ${{ secrets[format('SEED{0}', github.event.inputs.recipient)] }} | ||
VERBOSE_FILE: bot-transfer.txt | ||
run: COINAPPS=$PWD/coin-apps ledger-live botTransfer | ||
timeout-minutes: 120 | ||
- name: upload logs | ||
if: failure() || success() | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: bot-transfer.txt | ||
path: bot-transfer.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
name: Bot 'Silicium' | ||
on: | ||
schedule: | ||
- cron: "0 8-16/2 * * 1-5" | ||
push: | ||
branches: | ||
- bot-silicium | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
fec6dba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ 5 txs ($38.32) for Bot 'Cosmos JS'
5 mutation errors
Details of the 5 mutations
Spec Cosmos (6)
Details of the 2 uncovered mutations
Spec Cosmos (2)
Portfolio ($38.32)
Details of the 1 currencies