Skip to content

ci: reuse workflows

ci: reuse workflows #3

Workflow file for this run

---
on:
workflow_call:
secrets:
GITHUB_TOKEN:

Check failure on line 5 in .github/workflows/setup.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/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
job:
setup-repo:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt install -y make direnv unzip lz4 wget curl npm jq pv coreutils
- name: Install git-cliff
uses: baptiste0928/cargo-install@v3
with:
crate: git-cliff
- name: Detect required Go version
run: |
toolchain=$(./script/tools.sh gotoolchain | sed 's/go*//')
echo "GOVERSION=${toolchain}" >> $GITHUB_ENV
- uses: actions/setup-go@v5
with:
go-version: "${{ env.GOVERSION }}"
check-latest: true
- name: set environment
uses: HatsuneMiku3939/direnv-action@v1
with:
masks: ''