From 1354de6816522b8cdbc63ce2ee143c21616ea216 Mon Sep 17 00:00:00 2001
From: Thanh Nguyen <thanhn@microsoft.com>
Date: Thu, 23 Nov 2023 19:27:25 +1100
Subject: [PATCH] Test workflow release

---
 .github/workflows/release.yaml | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index df3d2c0..49d4ac0 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -8,15 +8,14 @@ on:
 
 env:
   BRANCH: 'release'
-  # GITHUB_REF: 'refs/heads/release'
-  GITHUB_REF: 'release'
+  NEED_REF: 'refs/heads/release'
   TAG_PREFIX: 'v'
 
 jobs:
   ReleaseDryRun:
     runs-on: ubuntu-latest
     # if: |
-    #   github.ref == '${GITHUB_REF}'
+    #   github.ref == '${NEED_REF}'
     outputs:
       RESULT: ${{ steps.release_dry_run.outputs.result }}
       VERSION: ${{ steps.release_dry_run.outputs.releaseVersion }}
@@ -27,13 +26,15 @@ jobs:
           echo "BRANCH: ${BRANCH}"
           echo "GITHUB_REF: ${GITHUB_REF}"
           echo "TAG_PREFIX: ${TAG_PREFIX}"
-          echo "github.ref: ${{ github.ref }}"
       - name: Dump 2
         uses: actions/github-script@v7
         with:
           github-token: ${{ secrets.GITHUB_TOKEN }}
           script: |
-            console.log(context.payload.workflow_run);
+            console.log(context.payload.workflow_run)
+            if (context.payload.workflow_run.event != 'pull_request') {
+              console.log(content.payload.pull_request)
+            }
       - name: Check out code
         uses: actions/checkout@v4
       - name: Install Node