Skip to content

Merge pull request #42 from ganto/dependabot/github_actions/actions/c… #7

Merge pull request #42 from ganto/dependabot/github_actions/actions/c…

Merge pull request #42 from ganto/dependabot/github_actions/actions/c… #7

Workflow file for this run

---
# This workflow requires a GALAXY_API_KEY secret present in the GitHub
# repository or organization.
#
# See: https://github.com/marketplace/actions/publish-ansible-role-to-galaxy
# See: https://github.com/ansible/galaxy/issues/46
name: Master
on:
push:
branches:
- master
tags:
- '*'
workflow_dispatch:
permissions:
contents: read
defaults:
run:
working-directory: 'ganto.gdnsd'
jobs:
update-galaxy:
name: Update-Galaxy
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
path: 'ganto.gdnsd'
- name: Set up Python 3.
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
# stay with Python 3.13 until ansible-core 2.20 is released
python-version: '3.13'
- name: Install Ansible.
run: pip3 install ansible-core
- name: Trigger a new import on Galaxy.
run: >
ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }}
| cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)