actions

forge-script.yml

Base Usage

forge-script:
  uses: init4tech/actions/.github/workflows/forge-script.yml@main
  with:
    github-environment: 'dev'
    forge-script-contract: 'MyScript'
    forge-script-signature: 'myFunction(address,uint256)'
    forge-script-params: '0x0000000000000000000000000000000000000000 123'

Required Parameters

github-environment

Description: The GitHub environment to use (contains required secrets)

Type: string

forge-script-contract

Description: Name of the script contract to run

Type: string

forge-script-signature

Description: The signature of the function you want to call in the forge script contract

Type: string

Optional Parameters

forge-script-params

Description: A space separated list of parameters to pass to the forge script

Type: string

Required Secrets

aws-role

Description: The AWS role to use for the kms signer key for forge

kms-key-id

Description: The AWS kms key id to use for the kms signer key for forge

rpc-url

Description: The url of the rpc endpoint for forge to use