From 0db38ecde9e344e3a4f8596d7c59b3b88973deea Mon Sep 17 00:00:00 2001 From: cradle8810 Date: Fri, 26 Apr 2024 01:32:09 +0900 Subject: [PATCH] Self run test --- .github/workflows/jobs.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/jobs.yml b/.github/workflows/jobs.yml index a97eed5..24785da 100644 --- a/.github/workflows/jobs.yml +++ b/.github/workflows/jobs.yml @@ -4,6 +4,7 @@ on: push: branches: - '**' + workflow_dispatch: jobs: Yamllint: @@ -38,11 +39,26 @@ jobs: "./dupcheck.sh" "inventories/host_vars/rui/ads_hosts/NXDOMAIN.yml" - Ansible-rui-dns: + Detect_File_Changed: + runs-on: ubuntu-latest + steps: + - name: Check What file were changed + uses: dorny/paths-filter@v2 + id: changes + with: + filters: | + rui: + - 'rui.yml' + - 'tasks/rui/dnsmasq.yml' + - 'inventories/host_vars/rui/**' + + Dry_Run_ansible: + if: ${{ needs.changes.outputs.rui == 'true' }} needs: - Yamllint - AnsibleLint - Duplicate_Check + - Detect_File_Changed runs-on: self-hosted steps: - name: Checkout