File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 5454 BRANCH : " ${{ env.GITHUB_BRANCH_NAME }}"
5555 run : make preview
5656
57+ - name : Get safe branch and export to env
58+ run : |
59+ echo "SAFE_BRANCH=$(make safe_branch)" >> $GITHUB_ENV
60+
5761 - name : Update PR Comment
5862 uses : actions/github-script@v7
5963 if : github.event_name == 'pull_request'
8084 }
8185 });
8286
83- const branch_name = process.env.GITHUB_BRANCH_NAME ;
84- const url = "https://" + branch_name + "." + process.env.PREVIEW_HOSTNAME;
87+ const safe_branch = process.env.SAFE_BRANCH ;
88+ const url = "https://" + safe_branch + "." + process.env.PREVIEW_HOSTNAME;
8589 const timestamp = new Date().toISOString();
8690 const header = "\n|Key|Value|\n|---|---|\n"
8791 const body = preview_identifier + header + "|url|" + url + "|\n|last update|" + timestamp + "|";
You can’t perform that action at this time.
0 commit comments