Skip to content

Commit

Permalink
Merge pull request #4 from ApolloAutomation/BetterYAMLSearch
Browse files Browse the repository at this point in the history
Update Action
  • Loading branch information
TrevorSchirmer authored Nov 6, 2024
2 parents 4a8c766 + 461d843 commit 50afffc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,18 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 2 # Fetch enough history to access the previous commit

- name: Check for .yaml file changes
- name: Find .yaml Changes in Last PR Merge
id: check
run: |
if git diff --name-only HEAD~1 HEAD | grep -q '\.yaml$'; then
# Get the commit hash of the first parent (pre-merge) and the merge commit
BASE_COMMIT=$(git rev-parse HEAD^1)
MERGE_COMMIT=$(git rev-parse HEAD)
# Check if there were any .yaml file changes between the pre-merge and merge commits
if git diff --name-only $BASE_COMMIT $MERGE_COMMIT | grep -q '\.yaml$'; then
echo "YAML files changed"
echo "::set-output name=yaml_changed::true"
else
Expand Down
2 changes: 1 addition & 1 deletion Integrations/ESPHome/Core.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
substitutions:
version: "24.11.6.4"
version: "24.11.6.5"

esp32:
board: esp32-c3-devkitm-1
Expand Down

0 comments on commit 50afffc

Please sign in to comment.