瀏覽代碼

fix env var deletion

Signed-off-by: Alex Meijer <ameijer@kubecost.com>
Alex Meijer 2 年之前
父節點
當前提交
b02e9ea449
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      .github/workflows/build-test.yaml

+ 5 - 1
.github/workflows/build-test.yaml

@@ -51,6 +51,9 @@ jobs:
           PR_NUM: ${{ github.event.number }}
           PR_NUM: ${{ github.event.number }}
         run: |
         run: |
           echo $PR_NUM > pr_num.txt
           echo $PR_NUM > pr_num.txt
+          echo $GITHUB_BASE_REF > base.txt
+          echo $GITHUB_HEAD_REF > head.txt
+
       - name: Upload code coverage
       - name: Upload code coverage
         uses: actions/upload-artifact@v3
         uses: actions/upload-artifact@v3
         with:
         with:
@@ -58,7 +61,8 @@ jobs:
           path: |
           path: |
            coverage.out
            coverage.out
            pr_num.txt
            pr_num.txt
-      
+           base.txt
+           head.txt
 
 
   frontend:
   frontend:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest