Fabian Koller ba853be00d
Use local HEAD hash as installation target
GitHub actions' GITHUB_SHA provides unexpected hashes for manually
re-run pipelines. Instead rely on the commit as seen from the current
git history.
2021-02-25 06:59:27 +01:00

17 lines
474 B
YAML

---
- name: update previous release to newest release
hosts: all
tasks:
- name: install git dependency
apt:
pkg: git
- name: obtain latest git hash in current tree
command: git rev-parse HEAD
register: git_hash
- name: set current github commit as version when available
set_fact:
paperlessng_version: "{{ git_hash.stdout }}"
- name: update to newest paperless-ng release
include_role:
name: ansible