File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -34,16 +34,12 @@ jobs:
3434 - name : Install dependencies
3535 run : make install
3636
37- - name : Get current branch name
38- run : |
39- BRANCH_NAME=$(make safe_branch BRANCH=$GITHUB_BRANCH_NAME)
40- echo "BRANCH_NAME=${BRANCH_NAME}" >> $GITHUB_ENV
41-
4237 - name : Build the website
43- run : |
44- make build MODE=preview
45- SITE_URL="https://${BRANCH_NAME}.ep-preview.click"
46- GIT_VERSION="${GITHUB_COMMIT_HASH}"
38+ env :
39+ BRANCH : " ${{ env.GITHUB_BRANCH_NAME }}"
40+ GIT_VERSION : " ${{ env.GITHUB_COMMIT_HASH }}"
41+ MODE : " preview"
42+ run : make build
4743
4844 - name : Set up SSH key
4945 uses :
webfactory/[email protected] 5450 run : ssh-keyscan "static.europython.eu" > ~/.ssh/known_hosts
5551
5652 - name : Upload preview
57- run : make preview BRANCH=$GITHUB_BRANCH_NAME
53+ env :
54+ BRANCH : " ${{ env.GITHUB_BRANCH_NAME }}"
55+ run : make preview
5856
5957 - name : Update PR Comment
6058 uses : actions/github-script@v7
8280 }
8381 });
8482
85- const branch_name = process.env.BRANCH_NAME ;
83+ const branch_name = process.env.GITHUB_BRANCH_NAME ;
8684 const url = "https://" + branch_name + "." + process.env.PREVIEW_HOSTNAME;
8785 const timestamp = new Date().toISOString();
8886 const header = "\n|Key|Value|\n|---|---|\n"
You can’t perform that action at this time.
0 commit comments