mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: Release AWX
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: 'Version'
|
|
required: true
|
|
default: ''
|
|
confirm:
|
|
description: 'Are you sure? Set this to yes.'
|
|
required: true
|
|
default: 'no'
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: "Verify inputs"
|
|
run: |
|
|
set -e
|
|
|
|
if [[ ${{ github.event.inputs.confirm }} != "yes" ]]; then
|
|
>&2 echo "Confirm must be 'yes'"
|
|
exit 1
|
|
fi
|
|
|
|
if [[ ${{ github.event.inputs.version }} == "" ]]; then
|
|
>&2 echo "Set version to continue."
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|
|
|
|
- name: Generate changelog and 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 version=${{ github.event.inputs.version }} \
|
|
-e github_token=${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|