Hide the ugly parts in a custom action

This commit is contained in:
Shane McDonald
2021-08-29 17:43:39 -04:00
parent 1c65fbaae3
commit 9c3e78443b
4 changed files with 42 additions and 89 deletions

View File

@@ -33,14 +33,24 @@ jobs:
exit 0
- name: Generate changelog and release AWX
- name: Generate changelog
uses: shanemcd/simple-changelog-generator@v1
id: changelog
with:
repo: "${{ github.repository }}"
- name: Write changelog to file
run: |
cat << 'EOF' > /tmp/changelog
${{ steps.changelog.outputs.changelog }}
EOF
- name: Release AWX
run: |
sudo apt update
sudo apt install -y python3-pip
pip3 install ansible-core
ansible-playbook -v tools/ansible/release.yml \
-e repo=${{ github.repository }} \
-e changelog_path=/tmp/changelog \
-e version=${{ github.event.inputs.version }} \
-e github_token=${{ secrets.GITHUB_TOKEN }}
-e github_token=${{ secrets.GITHUB_TOKEN }} \
-e repo=${{ github.repository }}