From acd11f12f5b74fc4d3e99e40cb35f2bb00054b71 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Mon, 9 May 2022 09:00:40 -0700 Subject: [PATCH] [build] fix issue generator task (#9774) The github action for auto-generating issues when load tests are failing in main has been broken for some time. The check for branch was looking at the wrong branch name. Additionally the install command in the windows version was using an old go path. --- .github/workflows/build-and-test-windows.yml | 4 ++-- .github/workflows/load-tests.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-test-windows.yml b/.github/workflows/build-and-test-windows.yml index 5baaffc34087..17c07cf12b6d 100644 --- a/.github/workflows/build-and-test-windows.yml +++ b/.github/workflows/build-and-test-windows.yml @@ -45,7 +45,7 @@ jobs: go test --tags containers_image_openpgp,exclude_graphdriver_btrfs,exclude_graphdriver_devicemapper ./... working-directory: ./receiver/activedirectorydsreceiver - name: GitHub Issue Generator - if: ${{ failure() && github.ref == 'ref/head/main' }} + if: ${{ failure() && github.ref == 'refs/heads/main' }} run: | - cd internal/tools && go install go.opentelemetry.io/collector/cmd/issuegenerator + cd internal/tools && go install go.opentelemetry.io/build-tools/issuegenerator issuegenerator $TEST_RESULTS diff --git a/.github/workflows/load-tests.yml b/.github/workflows/load-tests.yml index 85d0a5877c5b..4b2214664d7b 100644 --- a/.github/workflows/load-tests.yml +++ b/.github/workflows/load-tests.yml @@ -131,5 +131,5 @@ jobs: with: path: ./*.tar - name: GitHub Issue Generator - if: ${{ failure() && github.ref == 'ref/head/main' }} + if: ${{ failure() && github.ref == 'refs/heads/main' }} run: issuegenerator $TEST_RESULTS