File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 1414 disable_logging : " {{ not lookup('env', 'ENABLE_DEBUG_LOGGING') | bool | default(false) }}"
1515
1616
17+ - name : Set var gitea_replace_url if empty
18+ ansible.builtin.set_fact :
19+ git_api_url : " {{ payload.repository.url }}"
20+ when : >
21+ git_api_url == ""
22+
23+
24+ - name : Set var gitea_replace_url if empty
25+ ansible.builtin.set_fact :
26+ gitea_replace_url : " {{ payload.repository.url }}"
27+ when : >
28+ gitea_replace_url == ""
29+
30+
1731 - name : Set required Facts
1832 ansible.builtin.set_fact :
19- git_url_api : " {{ payload.repository.url | replace(gitea_replace_url, git_api_url) }}"
33+ git_url_api : " {{ payload.repository.url | replace(( gitea_replace_url | split('/api/'))[0] , git_api_url) }}"
2034 git_url_path_jobs : ' actions/jobs'
2135 head_sha : " {{ payload.workflow_job.head_sha }}"
2236
You can’t perform that action at this time.
0 commit comments