Skip to content

Commit

Permalink
Fix branch triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdavidbell committed Dec 29, 2023
1 parent 7dee86a commit d811258
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: CI

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

workflow_dispatch:

Expand Down Expand Up @@ -45,7 +47,9 @@ jobs:
output=$(mktemp)
ansible-playbook --inventory ${INVENTORY} site.yml | tee ${output}
# anything_changed=$(tail ${output} | grep -q 'changed=0.*failed=0')
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 d811258

Please sign in to comment.