Skip to content

ci: reuse workflows

ci: reuse workflows #1

Workflow file for this run

---
on:
workflow_call:
secrets:
GITHUB_TOKEN:
required: true
job:
setup-repo:
runs-on: ubuntu-latest
steps:

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

View workflow run for this annotation

GitHub Actions / .github/workflows/setup.yaml

Invalid workflow file

You have an error in your yaml syntax on line 11
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: git fetch --prune --unshallow
- 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: ''