File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 npm install -g @semantic-release/commit-analyzer
3636 npm install -g @semantic-release/release-notes-generator
3737
38+ - name : Install Ansible (and ansible Galaxy)
39+ run : |
40+ apt update
41+ apt install software-properties-common
42+ add-apt-repository --yes --update ppa:ansible/ansible
43+ apt install ansible
44+
3845 - name : Get the next version
3946 run : |
4047 echo "NEXT_VERSION=`semantic-release --no-ci --dry-run | grep -oP 'The next release version is \K[0-9]+\.[0-9]+\.[0-9]+'`" >> "$GITHUB_OUTPUT"
4350 - name : Update Ansible Galaxy file with the next version
4451 run : |
4552 sed -i 's/version\:.*/version: ${{ steps.get_version.outputs.NEXT_VERSION }}/' ansible_collections/paloaltonetworks/panos_policy_automation/galaxy.yml
53+
54+ - name : Commit and push galaxy changes
55+ run : |
56+ git config --global user.name 'Github Actions Release Pipeline'
57+ git config --global user.email 'githubactions@users.noreply.github.com'
58+ git commit -am "chore: Update Ansible Galaxy file [skip ci]"
59+ git push
60+
61+ - name : Build the ansible galaxy collection (verifies that everything works)
62+ run : |
63+ ansible-galaxy collection build
4664
4765# Temp disable: don't do actual release yet
4866# - name: Run semantic-release
You can’t perform that action at this time.
0 commit comments