Skip to content

Commit

Permalink
chore: trigger while push request
Browse files Browse the repository at this point in the history
  • Loading branch information
liyukun committed Oct 30, 2023
1 parent e53cecc commit c5af02e
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/ibc-packet-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,31 @@ on:
workflow_dispatch:
schedule:
- cron: '0 */2 * * *' # runs every 2 hour
pull_request:
paths:
- .github/workflows/ibc-packet-trigger.yaml
- Cargo.toml
- Cargo.lock
- ci/**
- crates/**
- e2e/**

jobs:
schedule-run-packet-send:
runs-on: ubuntu-latest
env:
# for forcerelay-ckb-sdk
FORCERELAY_CKB_SDK_COMMIT: f02969f920fa48234959fd25c771992a85619eb6
AXON_RECEIVER: f39fd6e51aad88f6f4ce6ab8827279cfffb92266
AXON_RECEIVER: "f39fd6e51aad88f6f4ce6ab8827279cfffb92266"
SUDT_AMOUNT: 1000
SDK_WORKSPACE: ${{ github.workspace }}/forcerelay-ckb-sdk
SDK_CONFIG: ${{ github.workspace }}/e2e/schedule/sdk.config.toml
# for ibc-solidity-contract
AXON_HTTP_RPC_URL: https://rpc-alphanet-axon.ckbapp.dev
IBC_SOLIDITY_CONTRACT_COMMIT: e0d1f4bf20c40aad721bff5838d8a3fa80c94585
CONTRACT_WORKSPACE: ${{ github.workspace }}/ibc-solidity-contract
RECEIVER: 0xc219351b150b900e50a7039f1e448b844110927e
TRANSFER_CONTRACT_ADDRESS: 0x9E545E3C0baAB3E08CdfD552C960A1050f373042
RECEIVER: "0xc219351b150b900e50a7039f1e448b844110927e"
TRANSFER_CONTRACT_ADDRESS: "0x9E545E3C0baAB3E08CdfD552C960A1050f373042"
CHANNEL: channel-8
DENOM: f2a14f50a56b9aab8e960cb1b2c7f1152d7523e6cacb45b1ab2a94acb83e0233
AMOUNT: 1000
Expand All @@ -42,13 +50,18 @@ jobs:
- name: Install yarn
run: npm install --global yarn

- name: Prepare IBC contracts
- name: Prepare IBC solidity contracts
run: git clone --recursive https://github.com/synapseweb3/ibc-solidity-contract.git $CONTRACT_WORKSPACE && cd $CONTRACT_WORKSPACE && git checkout $IBC_SOLIDITY_CONTRACT_COMMIT

- name: Build IBC solidity contracts
working-directory: ${{ env.CONTRACT_WORKSPACE }}
run: yarn install

- name: Print schedule start-time of ibc-solidity-contract
run: echo "${{ steps.solidity-start-time.outputs.result }}"

- name: 1. Trigger SendPacket event on Axon (ERC20)
working-directory: ${{ env.CONTRACT_WORKSPACE }}
run: yarn send

- uses: actions/checkout@v3
Expand Down

0 comments on commit c5af02e

Please sign in to comment.