-
Notifications
You must be signed in to change notification settings - Fork 76
38 lines (33 loc) · 1.05 KB
/
verify-upgrade.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Verify Deployment
on:
push:
branches:
- main
pull_request:
branches:
- main # Target branch for the PR
release:
types: [published]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
verify-upgrade:
runs-on: ubuntu-latest
env:
RPC_URL: ${{ secrets.RPC_URL || 'https://sepolia.gateway.tenderly.co' }}
if: github.event_name == 'pull_request' && startsWith(github.head_ref, 'deploy/')
steps:
- uses: actions/checkout@v3
- uses: FuelLabs/github-actions/setups/node@master
with:
node-version: 20.16.0
pnpm-version: 9.0.6
- name: Verify deployment bytecode
run: |
# Extract branch name from `GITHUB_HEAD_REF` (PR source branch)
BRANCH_NAME=${{ github.head_ref }}
# Remove the deploy/ prefix
BRANCH_NAME=${BRANCH_NAME#deploy/}
npx hardhat verify-deployment --network $BRANCH_NAME
working-directory: ./packages/solidity-contracts