mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
Hide the ugly parts in a custom action
This commit is contained in:
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
@@ -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 }}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user