Skip to content

Try to enable mantle #124

Try to enable mantle

Try to enable mantle #124

Workflow file for this run

name: Check helix relayer config
on:
pull_request:
# branches:
# - main
env:
HELIXBRIDGE_CLI_VERSION: sha-fe184cd
jobs:
check:
name: Check changes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
path: _${{ github.base_ref }}_
- name: Check register
run: |
docker run -i --rm \
--name helixbridge \
-v $PWD:/relayer \
-e FORCE_COLOR=1 \
-e SIGNER=${{ secrets.SIGNER }} \
ghcr.io/helix-bridge/helixbridge-cli:${HELIXBRIDGE_CLI_VERSION} \
register --verbose --write-lock --datadir=/relayer --group=itering
- name: Check configure
run: |
docker run -i --rm \
--name helixbridge \
-v $PWD:/relayer \
-e FORCE_COLOR=1 \
-e SIGNER=${{ secrets.SIGNER }} \
ghcr.io/helix-bridge/helixbridge-cli:${HELIXBRIDGE_CLI_VERSION} \
generate-configure --verbose --datadir=/relayer --group=itering
- uses: int128/diff-action@v1
with:
base: _${{ github.base_ref }}_/outputs
head: outputs
- name: Build comment
run: |
COMMENT_FILE='comment-configurate.md';
echo 'configure changes:' >> $COMMENT_FILE
for f in $(ls outputs/configure/*.json); do
echo "<details>" >> $COMMENT_FILE
echo "<summary>${f}</summary>" >> $COMMENT_FILE
echo '' >> $COMMENT_FILE
echo '```json' >> $COMMENT_FILE
cat $f >> $COMMENT_FILE
echo '' >> $COMMENT_FILE
echo '```' >> $COMMENT_FILE
echo '</details>' >> $COMMENT_FILE
echo '' >> $COMMENT_FILE
done
- name: Find Comment
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: ${{ github.event.number }}
body-includes: configure changes
- name: Comment configurate
uses: GrantBirki/comment@v2
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
file: comment-configurate.md
edit-mode: replace