@@ -31,11 +31,11 @@ jobs:
31
31
echo "head_ref is: ${{ github.head_ref }}"
32
32
echo "target repository is: ${{ github.repository }}"
33
33
echo "head repository is: ${{ github.event.pull_request.head.repo.full_name }}"
34
- - uses : actions/checkout@v2
35
- - uses : julia-actions/setup-julia@v1
34
+ - uses : actions/checkout@v4
35
+ - uses : julia-actions/setup-julia@v2
36
36
with :
37
37
version : ${{ matrix.version }}
38
- - uses : julia-actions/cache@v1
38
+ - uses : julia-actions/cache@v2
39
39
- uses : julia-actions/julia-buildpkg@v1
40
40
- uses : julia-actions/julia-runtest@v1
41
41
- uses : julia-actions/julia-processcoverage@v1
@@ -61,13 +61,13 @@ jobs:
61
61
os :
62
62
- ' ubuntu-latest'
63
63
steps :
64
- - uses : actions/checkout@v2
64
+ - uses : actions/checkout@v4
65
65
with :
66
66
persist-credentials : false
67
- - uses : julia-actions/setup-julia@v1
67
+ - uses : julia-actions/setup-julia@v2
68
68
with :
69
69
version : ${{ matrix.version }}
70
- - uses : julia-actions/cache@v1
70
+ - uses : julia-actions/cache@v2
71
71
- uses : julia-actions/julia-buildpkg@v1
72
72
- uses : julia-actions/julia-runtest@v1
73
73
env :
@@ -80,45 +80,45 @@ jobs:
80
80
env :
81
81
JULIA_PKG_SERVER : " "
82
82
steps :
83
- - uses : actions/checkout@v2
83
+ - uses : actions/checkout@v4
84
84
with :
85
85
persist-credentials : false
86
- - uses : julia-actions/setup-julia@v1
86
+ - uses : julia-actions/setup-julia@v2
87
87
with :
88
88
version : ' 1'
89
89
- run : |
90
- julia -e '
91
- function set_environment_variable(name::AbstractString, value::AbstractString)
92
- github_env = ENV["GITHUB_ENV"]
93
- touch (github_env)
94
- open(github_env , "a") do io
95
- println(io, "$(name)=$(value)")
96
- end
97
- end
98
- event_name = "${{ github.event_name }} "
99
- if event_name == "pull_request "
100
- base_ref = "${{ github.base_ref }}"
101
- head_ref = "${{ github.head_ref }}"
102
- base_repository = "${{ github.repository }}"
103
- head_repository = "${{ github.event.pull_request.head.repo.full_name }}"
104
- build_docs = (base_ref == "master") && (head_ref == "dev") && (base_repository == head_repository)
105
- elseif event_name == "push "
106
- ref = "${{ github. ref }}"
107
- build_docs = (ref == "refs/heads/master") || (startswith(ref, "refs/tags/"))
108
- elseif event_name == "schedule "
109
- build_docs = ref == "refs/heads/master "
110
- elseif event_name == "workflow_dispatch "
111
- build_docs = ref == "refs/heads/master"
112
- else
113
- build_docs = false
114
- end
115
- if build_docs
116
- @info("We will build the docs ")
117
- set_environment_variable("BUILD_DOCS", "true")
118
- else
119
- @info("We will NOT build the docs ")
120
- set_environment_variable("BUILD_DOCS", "false")
121
- end'
90
+ function set_environment_variable(name::AbstractString, value::AbstractString)
91
+ github_env = ENV["GITHUB_ENV"]
92
+ touch( github_env)
93
+ open (github_env, "a") do io
94
+ println(io , "$(name)=$(value)")
95
+ end
96
+ end
97
+ event_name = "${{ github.event_name }}"
98
+ if event_name == "pull_request "
99
+ base_ref = "${{ github.base_ref }} "
100
+ head_ref = "${{ github.head_ref }}"
101
+ base_repository = "${{ github.repository }}"
102
+ head_repository = "${{ github.event.pull_request.head.repo.full_name }}"
103
+ build_docs = (base_ref == "master") && (head_ref == "dev") && (base_repository == head_repository)
104
+ elseif event_name == "push"
105
+ ref = "${{ github.ref }} "
106
+ build_docs = ( ref == "refs/heads/master") || (startswith( ref, "refs/tags/"))
107
+ elseif event_name == "schedule"
108
+ build_docs = ref == "refs/heads/master "
109
+ elseif event_name == "workflow_dispatch "
110
+ build_docs = ref == "refs/heads/master "
111
+ else
112
+ build_docs = false
113
+ end
114
+ if build_docs
115
+ @info("We will build the docs")
116
+ set_environment_variable("BUILD_DOCS", "true ")
117
+ else
118
+ @info("We will NOT build the docs")
119
+ set_environment_variable("BUILD_DOCS", "false ")
120
+ end
121
+ shell: julia --color=yes {0}
122
122
- run : |
123
123
if ENV["BUILD_DOCS"] == "true"
124
124
using Pkg
0 commit comments