Run Custom Command #1
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: Run Custom Command | |
on: | |
workflow_dispatch: | |
inputs: | |
cmd: | |
description: cli cmd to run | |
required: true | |
jobs: | |
run-custom-command: | |
name: Run Custom Command | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install forge dependencies | |
run: forge install | |
- name: Run custom command | |
run: ${{ github.event.inputs.cmd }} |