Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/galaxy-import.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Galaxy Import

on:
push:
tags:
- "v*"
workflow_dispatch:

jobs:
import:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: Install ansible-core
run: pip install ansible-core

- name: Import role to Ansible Galaxy
env:
GALAXY_API_KEY: ${{ secrets.GALAXY_API_KEY }}
run: |
if [ -z "$GALAXY_API_KEY" ]; then
echo "GALAXY_API_KEY secret is not set" >&2
exit 1
fi
# Hardcode legacy github_user so FQN stays 0x0i.basic_service
ansible-galaxy role import 0x0I basic-service --token "$GALAXY_API_KEY"
1 change: 0 additions & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
galaxy_info:
author: O1 Labs
role_name: basic_service
namespace: o1
description: Ansible role for running any software process/service
company: O1.IO
license: MIT
Expand Down
Loading