mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00

GitHub actions' GITHUB_SHA provides unexpected hashes for manually re-run pipelines. Instead rely on the commit as seen from the current git history.
17 lines
474 B
YAML
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
|