Skip to content

Commit

Permalink
chores: test ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
cosinlink committed Sep 8, 2024
1 parent 39255e8 commit 399bab6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/check-bsc-hardfork-bytecode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ jobs:
const info = JSON.parse(prBody.substring(p1 + 3, p2))
console.log('info', info, info.hardfork, info.bsc)
core.setOutput('hardfork', info.hardfork)
core.setOutput('bsc', info.bsc)
- name: Compare genesis with hardfork bytecode files from BSC repo
run: |
echo ${{ steps.extract_pr_description.outputs.hardfork }}
export HARDFORK=${{ steps.extract_pr_description.outputs.hardfork }}
export BSC_URL=${{ steps.extract_pr_description.outputs.bsc }}
ts-node scripts/check-bsc-hardfork-bytecode.ts
9 changes: 2 additions & 7 deletions scripts/check-bsc-hardfork-bytecode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,8 @@ const clear0x = (str: string) => {
};

const main = async () => {
const pr = process.env.PR_BODY
log('PR_BODY:', pr)
const info = process.env.info
log('info:', info)
const p1 = pr.indexOf('>CI')
const p2 = pr.indexOf('>CI', p1 + 1)
log(p1, p2, pr.substring(p1 + 3, p2))
log('process.env.HARDFORK', process.env.HARDFORK)
log('process.env.BSC_URL', process.env.BSC_URL)

if (!bscRepoDir) {
throw new Error('BSC_REPO_DIR is required in .env')
Expand Down

0 comments on commit 399bab6

Please sign in to comment.