Merge pull request #646 from C0nsultant/ansible-CI-stability

Ansible - Fix GitHub actions
This commit is contained in:
Jonas Winkler 2021-02-26 21:28:43 +01:00 committed by GitHub
commit 4ef4af452a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View File

@ -48,6 +48,8 @@ jobs:
molecule idempotence
molecule verify
working-directory: "${{ github.repository }}"
env:
TARGET_GITHUB_SHA: "${{ github.event.pull_request.head.sha }}"
# # https://galaxy.ansible.com/docs/contributing/importing.html
# release:
# runs-on: ubuntu-latest

View File

@ -2,15 +2,9 @@
- 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 }}"
paperlessng_version: "{{ lookup('env', 'TARGET_GITHUB_SHA') | default('master', True) }}"
- name: update to newest paperless-ng release
include_role:
name: ansible