fix icon url #376
Workflow file for this run
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
name: Issue Trigger | |
on: | |
pull_request: | |
types: [opened, edited] | |
jobs: | |
trigger: | |
runs-on: self-hosted | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- name: update-integration-keyfile | |
if: contains(github.event.pull_request.body, '/update-integration-keyfile') || contains(github.event.comment.body, '/update-integration-keyfile') # check the comment if it contains the keywords | |
run: | | |
cd /server | |
sudo rm -rf ./zkbnb | |
echo 'fetch zkbnb repo' | |
export PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }') | |
echo Pull requests $PR_NUMBER | |
sudo git clone https://github.com/bnb-chain/zkbnb.git | |
cd ./zkbnb | |
sudo git fetch origin pull/$PR_NUMBER/head:$GITHUB_SHA 2>/dev/null | |
sudo git checkout $GITHUB_SHA | |
sudo bash ./deployment/tool/tool.sh prepare new | |
sudo rm -rf /server/test.keyfile | |
sudo cp -r ./deployment/.zkbnb /server/test.keyfile |