diff --git a/.ansible-lint b/.ansible-lint index fd975d9..13aa2ff 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -5,6 +5,7 @@ exclude_paths: skip_list: - risky-file-permissions # Keep default file permission on modification by default - var-naming[no-role-prefix] # Using "_" or "_*" names for temporary variables + - galaxy[version-incorrect] # Set by deployment pipeline warn_list: - experimental - schema[meta] # Sometime, new Fedora versions are not present in valid schema values diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5d931ce..2950da8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -79,7 +79,9 @@ jobs: run: pip install -q --disable-pip-version-check ansible - name: Build - run: ansible-galaxy collection build -vvv + run: | + sed -i 's/0.0.0/${{ github.ref_name }}/g' galaxy.yml + ansible-galaxy collection build -vvv - name: Publish run: "ansible-galaxy collection publish jgoutin-home-*.tar.gz --token ${{ secrets.ANSIBLE_GALAXY_TOKEN }}" diff --git a/galaxy.yml b/galaxy.yml index fc2e3f8..603a6a4 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -2,7 +2,7 @@ namespace: jgoutin name: home description: Home free software self-hosting. -version: 2.1.0 +version: 0.0.0 # Set by deployment pipeline readme: readme.md authors: - jgoutin