infra-setup #2
|
@ -20,23 +20,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 2
|
||||||
|
|
||||||
- name: Fetch PR base
|
- name: Fetch PR base
|
||||||
if: github.event.pull_request
|
if: github.event.pull_request
|
||||||
run: |
|
run: |
|
||||||
git fetch --no-tags --progress --no-recurse-submodules --depth=1 origin ${{ github.event.pull_request.base.sha }}
|
git fetch --no-tags --progress --no-recurse-submodules --depth=1 origin ${{ github.event.pull_request.base.sha }}
|
||||||
|
|
||||||
- name: Test
|
|
||||||
if: github.event.forkee
|
|
||||||
run: echo dot!
|
|
||||||
|
|
||||||
- run: |
|
|
||||||
echo !${{ github.event.pull_request.base.repo }} !${{ github.event.pull_request.base.sha }}
|
|
||||||
echo !${{ github.event.pusher }}
|
|
||||||
echo !${{ github.event.forkee }}
|
|
||||||
git remote get-url origin
|
|
||||||
git branch -l | cat
|
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
|
@ -56,6 +47,7 @@ jobs:
|
||||||
|
|
||||||
- name: Check modified playbooks
|
- name: Check modified playbooks
|
||||||
run: |
|
run: |
|
||||||
|
echo "Got changed files: '${{ steps.changed-playbooks.outputs.all_changed_files }}'"
|
||||||
for file in ${{ steps.changed-playbooks.outputs.all_changed_files }}; do
|
for file in ${{ steps.changed-playbooks.outputs.all_changed_files }}; do
|
||||||
ansible --inventory ./inventory --check "$file"
|
ansible --inventory ./inventory --check "$file"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue