ansible-role-nginx/.github/workflows/galaxy.yml
Alessandro Fael Garcia 02c24d68ef
Update GitHub Actions
Dependabot should now trigger at the same time across all NGINX Core Ansible repositories
2022-03-31 15:58:46 +02:00

26 lines
690 B
YAML

---
name: Ansible Galaxy import
"on":
release:
types:
- published
workflow_dispatch:
jobs:
galaxy:
name: Galaxy
runs-on: ubuntu-20.04
steps:
- name: Check out the codebase
uses: actions/checkout@v3
- name: Set up Python 3
uses: actions/setup-python@v3
with:
python-version: 3.x
- name: Install Ansible
run: pip3 install -r .github/workflows/requirements/requirements_galaxy.txt
- name: Import release to Ansible Galaxy
run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)