From 46fadc073a719f3c02cf7451bf274bad36cc9604 Mon Sep 17 00:00:00 2001 From: ashmrtn <3891298+ashmrtn@users.noreply.github.com> Date: Fri, 4 Aug 2023 10:26:39 -0700 Subject: [PATCH] Fix sending slack message on failure (#3964) #### Does this PR need a docs update or release note? - [ ] :white_check_mark: Yes, it's included - [ ] :clock1: Yes, but in a later PR - [x] :no_entry: No #### Type of change - [ ] :sunflower: Feature - [x] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Supportability/Tests - [x] :computer: CI/Deployment - [ ] :broom: Tech Debt/Cleanup #### Test Plan - [x] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- .github/workflows/longevity_test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/longevity_test.yml b/.github/workflows/longevity_test.yml index 775258f21..bf80308cf 100644 --- a/.github/workflows/longevity_test.yml +++ b/.github/workflows/longevity_test.yml @@ -61,7 +61,13 @@ jobs: run: | echo version=$(git describe --tags --abbrev=0) | tee -a $GITHUB_OUTPUT - - run: git checkout ${{ steps.version.outputs.version }} + # Checkout the .github directory at the original branch's ref so we have a + # stable view of the actions. + - name: Code Checkout + working-directory: ${{ github.workspace }} + run: | + git checkout ${{ steps.version.outputs.version }} + git checkout ${{ github.ref }} -- .github - run: go build -o corso