Compare commits
1 Commits
c1869317d4
...
2101813ea4
Author | SHA1 | Date | |
---|---|---|---|
2101813ea4 |
2
.cz.yaml
2
.cz.yaml
@ -12,7 +12,9 @@ commitizen:
|
|||||||
- fix
|
- fix
|
||||||
- test
|
- test
|
||||||
- refactor
|
- 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>.*)?
|
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
|
name: cz_customize
|
||||||
prerelease_offset: 1
|
prerelease_offset: 1
|
||||||
tag_format: $version
|
tag_format: $version
|
||||||
|
@ -30,7 +30,9 @@
|
|||||||
|
|
||||||
- name: Set required Facts
|
- name: Set required Facts
|
||||||
ansible.builtin.set_fact:
|
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'
|
git_url_path_jobs: 'actions/jobs'
|
||||||
head_sha: "{{ payload.workflow_job.head_sha }}"
|
head_sha: "{{ payload.workflow_job.head_sha }}"
|
||||||
|
|
||||||
@ -51,7 +53,9 @@
|
|||||||
|
|
||||||
- name: Fetch job log
|
- name: Fetch job log
|
||||||
ansible.builtin.uri:
|
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
|
dest: /tmp/job.log
|
||||||
headers:
|
headers:
|
||||||
Authorization: token {{ lookup('env', 'GIT_API_TOKEN') }}
|
Authorization: token {{ lookup('env', 'GIT_API_TOKEN') }}
|
||||||
@ -119,9 +123,11 @@
|
|||||||
timeout: 10
|
timeout: 10
|
||||||
validate_certs: false
|
validate_certs: false
|
||||||
no_log: "{{ disable_logging }}"
|
no_log: "{{ disable_logging }}"
|
||||||
|
# yamllint disable rule:indentation
|
||||||
when: >
|
when: >
|
||||||
http_get_pull_request.json.state | default('-') != 'closed'
|
http_get_pull_request.json.state | default('-') != 'closed'
|
||||||
and
|
and
|
||||||
http_get_pull_request.status | default(0) == 200
|
http_get_pull_request.status | default(0) == 200
|
||||||
and
|
and
|
||||||
not http_get_pull_request.skipped | default(false) | bool
|
not http_get_pull_request.skipped | default(false) | bool
|
||||||
|
# yamllint enable rule:indentation
|
||||||
|
Reference in New Issue
Block a user