Skip to content

Commit 797f491

Browse files
chore: Update CI
1 parent d5f702b commit 797f491

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ jobs:
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"
@@ -43,6 +50,17 @@ jobs:
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

0 commit comments

Comments
 (0)