Skip to content

Move workflow file to correct magic folder #1

Move workflow file to correct magic folder

Move workflow file to correct magic folder #1

name: Run ansible to configure servers
on:
push:
branches:
- master
jobs:
build:
env:
IS_MASTER_BUILD: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: run ansible
if: ${{ env.IS_MASTER_BUILD }}
run: |
./run.sh