Compare commits
1 Commits
c1869317d4
...
2101813ea4
Author | SHA1 | Date | |
---|---|---|---|
2101813ea4 |
2
.cz.yaml
2
.cz.yaml
@ -12,7 +12,9 @@ commitizen:
|
||||
- fix
|
||||
- test
|
||||
- refactor
|
||||
# yamllint disable rule:line-length
|
||||
commit_parser: ^(?P<change_type>feat|fix|test|refactor|perf|BREAKING CHANGE)(?:\((?P<scope>[^()\r\n]*)\)|\()?(?P<breaking>!)?:\s(?P<message>.*)?
|
||||
# yamllint enable rule:line-length
|
||||
name: cz_customize
|
||||
prerelease_offset: 1
|
||||
tag_format: $version
|
||||
|
@ -30,7 +30,9 @@
|
||||
|
||||
- name: Set required Facts
|
||||
ansible.builtin.set_fact:
|
||||
git_url_api: "{{ payload.repository.url | replace((gitea_replace_url | split('/api/'))[0], git_api_url) }}"
|
||||
git_url_api: >-
|
||||
{{ payload.repository.url |
|
||||
replace((gitea_replace_url | split('/api/'))[0], git_api_url) }}
|
||||
git_url_path_jobs: 'actions/jobs'
|
||||
head_sha: "{{ payload.workflow_job.head_sha }}"
|
||||
|
||||
@ -51,7 +53,9 @@
|
||||
|
||||
- name: Fetch job log
|
||||
ansible.builtin.uri:
|
||||
url: "{{ git_url_api + '/' + git_url_path_jobs + '/' + payload.workflow_job.id | string + '/logs' }}"
|
||||
url: >-
|
||||
{{ git_url_api + '/' + git_url_path_jobs
|
||||
+ '/' + payload.workflow_job.id | string + '/logs' }}
|
||||
dest: /tmp/job.log
|
||||
headers:
|
||||
Authorization: token {{ lookup('env', 'GIT_API_TOKEN') }}
|
||||
@ -119,9 +123,11 @@
|
||||
timeout: 10
|
||||
validate_certs: false
|
||||
no_log: "{{ disable_logging }}"
|
||||
# yamllint disable rule:indentation
|
||||
when: >
|
||||
http_get_pull_request.json.state | default('-') != 'closed'
|
||||
and
|
||||
http_get_pull_request.status | default(0) == 200
|
||||
and
|
||||
not http_get_pull_request.skipped | default(false) | bool
|
||||
# yamllint enable rule:indentation
|
||||
|
Reference in New Issue
Block a user