infra-setup #2
|
@ -11,6 +11,7 @@ on:
|
|||
paths:
|
||||
- infra/**-playbook.yaml
|
||||
- .github/workflows/infra.yaml
|
||||
fork:
|
||||
|
||||
jobs:
|
||||
check:
|
||||
|
@ -19,8 +20,11 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 2
|
||||
|
||||
- run: |
|
||||
echo ${{ github.event.pull_request.commits }}
|
||||
echo ${{ github.event.pusher }}
|
||||
echo ${{ github.event.forkee }}
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
|
@ -29,8 +33,8 @@ jobs:
|
|||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip3 install -r requirements.txt
|
||||
ansible-galaxy collection install community.general
|
||||
pip3 install -r requirements.txt ${{ github.event.pull_request.base }}
|
||||
ansible-galaxy collection install community.general ${{ github.event.pull_request.merge_commit_sha }}
|
||||
|
||||
- name: Get changed playbooks
|
||||
id: changed-playbooks
|
||||
|
|
Loading…
Reference in New Issue