Skip to content

Commit

Permalink
Update workflow branch triggers (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdavidbell authored Dec 29, 2023
1 parent 7dee86a commit 5d78c07
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
branches:
- master

workflow_dispatch:

Expand All @@ -14,7 +14,7 @@ defaults:

jobs:
ci:
name: Test Ansible provisioning
name: Test Ansible playbook
runs-on: macos-latest
env:
INVENTORY: work
Expand Down Expand Up @@ -45,7 +45,11 @@ jobs:
output=$(mktemp)
ansible-playbook --inventory ${INVENTORY} site.yml | tee ${output}
# anything_changed=$(tail ${output} | grep -q 'changed=0.*failed=0')
wc ${output}
# any_changes=$(tail ${output} | grep -q 'changed=0.*failed=0')
# echo "any_changes: [${any_changes}]" >> $GITHUB_OUTPUT
# if [[ "${anything_changed}" -gt 0 ]]; then
# echo "Playbook not idempotent!" >> $GITHUB_OUTPUT
# # TODO fix up playbook
Expand Down

0 comments on commit 5d78c07

Please sign in to comment.