mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Switch CI target to sha instead of ref
This commit is contained in:
parent
ac459f7b05
commit
9c3b16c879
@ -2,9 +2,9 @@
|
|||||||
- name: update previous release to newest release
|
- name: update previous release to newest release
|
||||||
hosts: all
|
hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- name: set github ref as version when available
|
- name: set current github commit as version when available
|
||||||
set_fact:
|
set_fact:
|
||||||
paperlessng_version: "{{ lookup('env', 'GITHUB_REF') | default('latest', True) }}"
|
paperlessng_version: "{{ lookup('env', 'GITHUB_SHA') | default('master', True) }}"
|
||||||
- name: update to newest paperless-ng release
|
- name: update to newest paperless-ng release
|
||||||
include_role:
|
include_role:
|
||||||
name: ansible
|
name: ansible
|
||||||
|
@ -114,6 +114,12 @@
|
|||||||
paperlessng_version: "{{ latest_release.json['tag_name'] }}"
|
paperlessng_version: "{{ latest_release.json['tag_name'] }}"
|
||||||
when: paperlessng_version == "latest"
|
when: paperlessng_version == "latest"
|
||||||
|
|
||||||
|
- name: check if version is ref
|
||||||
|
fail:
|
||||||
|
msg: "Specifying `paperlessng_version` as git ref may not work as expected!"
|
||||||
|
ignore_errors: True # Output failure (as warning), but don't consider play failed
|
||||||
|
when: paperlessng_version.startswith('refs/')
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: sanitize version string
|
- name: sanitize version string
|
||||||
set_fact:
|
set_fact:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user