Skip to content

Commit

Permalink
Set the collection version in galaxy.yml automatically.
Browse files Browse the repository at this point in the history
  • Loading branch information
JGoutin committed Jun 3, 2023
1 parent 557410f commit 017b893
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 017b893

Please sign in to comment.