Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Use local HEAD hash as installation target
Browse files Browse the repository at this point in the history
GitHub actions' GITHUB_SHA provides unexpected hashes for manually
re-run pipelines. Instead rely on the commit as seen from the current
git history.
  • Loading branch information
C0nsultant committed Feb 25, 2021
1 parent a720ed6 commit ba853be
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ansible/molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
- 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: "{{ lookup('env', 'GITHUB_SHA') | default('master', True) }}"
paperlessng_version: "{{ git_hash.stdout }}"
- name: update to newest paperless-ng release
include_role:
name: ansible

0 comments on commit ba853be

Please sign in to comment.