Skip to content

Merge pull request #10 from darkwizard242/feature/add-support-for-ubu… #11

Merge pull request #10 from darkwizard242/feature/add-support-for-ubu…

Merge pull request #10 from darkwizard242/feature/add-support-for-ubu… #11

Workflow file for this run

name: release
on:
push:
tags:
- '*'
env:
CUSTOM_DIR: 'darkwizard242.hadolint'
jobs:
release:
name: Release
runs-on: ubuntu-22.04
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
path: '${{ env.CUSTOM_DIR }}'
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Update repo cache, install python3-setuptools and required pip modules
run: |
sudo apt-get update
sudo apt-get install python3-setuptools -y
pip3 install -U pip wheel ansible
- name: Import to Ansible Galaxy.
working-directory: '${{ env.CUSTOM_DIR }}'
run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} ${{ github.repository_owner }} $(echo ${{ github.repository }} | sed 's/.*\///')