Skip to content

Investigate the github workflow for cross repo dependencies #2

Investigate the github workflow for cross repo dependencies

Investigate the github workflow for cross repo dependencies #2

name: Check cross repo dependencies
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- master
jobs:
replaces:
name: Check cross repo dependencies
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- repo: toolchain-e2e
- repo: host-operator
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"
# https://github.com/actions/checkout
#- name: Checkout Git Repository
# uses: actions/checkout@v4
# with:
# repository: ${{ matrix.repo }}
- name: Run check
id: check repo

Check failure on line 32 in .github/workflows/ci-check-cross-repo-dependencies.yml

View workflow run for this annotation

GitHub Actions / Check cross repo dependencies

Invalid workflow file

The workflow is not valid. .github/workflows/ci-check-cross-repo-dependencies.yml (Line: 32, Col: 13): The identifier 'check repo' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
run: |
set -e -o pipefail
git clone --depth 1 ${{ matrix.repo }}
cd ${{ matrix.repo }}
go edit -replace https://github.com/codeready-toolchain/toolchain-common=https://github.com/${GITHUB_REPOSITORY}@${GITHUB_REF}
go mod tidy
go vet ./... || true