Skip to content

devan555 is learning GitHub Actions #9

devan555 is learning GitHub Actions

devan555 is learning GitHub Actions #9

name: learn-github-actions
run-name: ${{ github.actor }} is learning GitHub Actions
on: [push]
jobs:
check-bats-version:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- run: ls
- run: pwd
- run: echo "REPO_NAME=${{ github.event.repository.name }}"
- run: whoami
- run: ansible-playbook ~/clab_files/ansible_files/01_run_clab.yml -i containerlab_test/ansible-inventory.yml
- name: Destroy the Containerlab
if: always()
run: ansible-playbook ~/clab_files/ansible_files/02_destroy_clab.yml