diff --git a/.github/workflows/collector-generate-and-update.yml b/.github/workflows/collector-generate-and-update.yml index 8852a0ca424c0..275f6fbbcf410 100644 --- a/.github/workflows/collector-generate-and-update.yml +++ b/.github/workflows/collector-generate-and-update.yml @@ -14,16 +14,22 @@ jobs: - name: Checkout repository uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 + - name: Read tool versions + id: tool-versions + run: | + echo "PYTHON_VERSION=$(cat .python-version)" >> $GITHUB_ENV + echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV + - name: Set up Python uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 with: - python-version: 3.12 + python-version: ${{ env.PYTHON_VERSION }} cache: 'pip' - name: Set up Go uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: - go-version: '1.22.8' + go-version: ${{ env.GO_VERSION }} - name: Install Dependencies run: | @@ -34,6 +40,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | + inv -e install-tools inv -e collector.update inv -e collector.generate inv -e generate-licenses