File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ jobs:
25
25
id : version
26
26
run : |
27
27
python -m pip install bump2version
28
- if [[ "${{ GITHUB_EVENT_NAME }}" == "pull_request"* ]]; then
29
- branch=$(echo "${{ GITHUB_BASE_REF }}")
28
+ if [[ "${{ github.event_name }}" == "pull_request"* ]]; then
29
+ branch=$(echo "${{ github.base_ref }}")
30
30
else
31
- branch=$(echo "${{ GITHUB_REF_NAME }}")
31
+ branch=$(echo "${{ github.ref_name }}")
32
32
fi
33
33
if [[ $branch == "main" ]]; then
34
34
version="minor"
Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ jobs:
41
41
env :
42
42
DELPHI_EPIDATA_KEY : ${{ secrets.SECRET_EPIPROCESS_GHACTIONS_DELPHI_EPIDATA_KEY }}
43
43
run : |
44
- if (startsWith("${{ GITHUB_EVENT_NAME }}", "pull_request")) {
45
- mode <- ifelse("${{ GITHUB_BASE_REF }}" == "main", "release", "devel")
44
+ if (startsWith("${{ github.event_name }}", "pull_request")) {
45
+ mode <- ifelse("${{ github.base_ref }}" == "main", "release", "devel")
46
46
} else {
47
- mode <- ifelse("${{ GITHUB_REF_NAME }}" == "main", "release", "devel")
47
+ mode <- ifelse("${{ github.ref_name }}" == "main", "release", "devel")
48
48
}
49
49
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE, override=list(PKGDOWN_DEV_MODE=mode))
50
50
shell : Rscript {0}
You can’t perform that action at this time.
0 commit comments