Skip to content

build(ci): use a common foundry-setup action #1

build(ci): use a common foundry-setup action

build(ci): use a common foundry-setup action #1

name: Foundry Setup
on:
workflow_call:
inputs:
version:
required: true
type: string
secrets:
GITHUB_TOKEN:

Check failure on line 10 in .github/workflows/foundry-setup.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/foundry-setup.yaml

Invalid workflow file

secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
required: true
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: ${{ inputs.version }}
- name: Print forge version
run: forge --version