Skip to content

Commit

Permalink
testing 13
Browse files Browse the repository at this point in the history
  • Loading branch information
asucrews authored Jul 3, 2024
1 parent c5598e0 commit 49f409e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/convert_yaml_to_markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- '**.yaml'

permissions:
contents: write # Add this line to grant write permissions
contents: write # Grant write permissions

jobs:
convert:
Expand Down Expand Up @@ -51,13 +51,11 @@ jobs:
fi
done
- name: Commit and push changes
if: env.files != ''
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m 'Convert YAML to Markdown'
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Convert YAML to Markdown'
branch: 'yaml-to-markdown-conversion'
title: 'Convert YAML to Markdown'
body: 'This pull request converts updated YAML files to Markdown format.'
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,4 @@ action:

mode: single
max_exceeded: silent

2 changes: 1 addition & 1 deletion automations/car_tag/car_tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,4 @@ action:
entity_id: !input garage_door_timer_helper

mode: single
max_exceeded: silent
max_exceeded: silent

0 comments on commit 49f409e

Please sign in to comment.