Skip to content

Commit 58ea978

Browse files
committed
Replace master -> main
1 parent a5c5581 commit 58ea978

File tree

5 files changed

+14
-35
lines changed

5 files changed

+14
-35
lines changed

.github/settings.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
# This GitHub action workflow is meant to be copyable to any repo that have the same structure.
2-
# - Your integration exist under custom_components/{INTEGRATION_NAME}/[integration files]
3-
# - You are using GitHub releases to publish new versions
4-
# - You have a INTEGRATION_VERSION constant in custom_components/{INTEGRATION_NAME}/const.py
5-
61
name: Release Workflow
72

83
on:
94
release:
10-
types: [published]
5+
types:
6+
- published
117

128
jobs:
139
release:
@@ -26,13 +22,15 @@ jobs:
2622
run: |
2723
name=$(find custom_components/ -type d -maxdepth 1 | tail -n 1 | cut -d "/" -f2)
2824
echo "::set-output name=name::$name"
25+
2926
- name: 🖊️ Set version number
3027
run: |
3128
sed -i '/INTEGRATION_VERSION = /c\INTEGRATION_VERSION = "${{ steps.version.outputs.version }}"' \
3229
"${{ github.workspace }}/custom_components/${{ steps.information.outputs.name }}/const.py"
3330
jq '.version = "${{ steps.version.outputs.version }}"' \
3431
"${{ github.workspace }}/custom_components/${{ steps.information.outputs.name }}/manifest.json" > tmp \
3532
&& mv -f tmp "${{ github.workspace }}/custom_components/${{ steps.information.outputs.name }}/manifest.json"
33+
3634
- name: 👀 Validate data
3735
run: |
3836
if ! grep -q 'INTEGRATION_VERSION = "${{ steps.version.outputs.version }}"' ${{ github.workspace }}/custom_components/${{ steps.information.outputs.name }}/const.py; then
@@ -46,10 +44,12 @@ jobs:
4644
echo "$manifestversion"
4745
exit 1
4846
fi
47+
4948
- name: 📦 Create zip file for the integration
5049
run: |
5150
cd "${{ github.workspace }}/custom_components/${{ steps.information.outputs.name }}"
5251
zip ${{ steps.information.outputs.name }}.zip -r ./
52+
5353
- name: 📤 Upload the zip file as a release asset
5454
uses: actions/upload-release-asset@v1
5555
env:

.github/workflows/validate.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ name: Validate
33

44
on:
55
push:
6-
branches: [master]
6+
branches:
7+
- main
78
pull_request:
8-
branches: [master]
9+
branches:
10+
- main
911
schedule:
1012
- cron: "0 0 * * *"
1113

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Github is used to host code, to track issues and feature requests, as well as ac
1313

1414
Pull requests are the best way to propose changes to the codebase.
1515

16-
1. Fork the repo and create your branch from `master`.
16+
1. Fork the repo and create your branch from `main`.
1717
2. If you've changed something, update the documentation.
1818
3. Make sure your code lints (using black).
1919
4. Issue that pull request!

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[![Discord][discord-shield]][discord]
1212
[![Community Forum][forum-shield]][forum]
1313

14-
_Use Jinja and data from Home Assistant to generate your README.md file
14+
_Use Jinja and data from Home Assistant to generate your README.md file
1515
with the list of all your installed add-ons and custom components_
1616

1717

@@ -69,7 +69,7 @@ Variable | Description
6969
`states` | This is the same as with the rest of Home Assistant.
7070
`custom_components` | Gives you a list of information about your custom_integrations
7171
`hacs_components` | Gives you a list of information about HACS installed integrations, plugins, and themes
72-
`addons` | List of installed Home Assistant Add-ons
72+
`addons` | List of installed Home Assistant Add-ons
7373

7474
### custom_components
7575

@@ -212,7 +212,7 @@ If you want to contribute to this please read the [Contribution guidelines](CONT
212212
[buymecoffee]: https://www.buymeacoffee.com/ludeeus
213213
[buymecoffeebadge]: https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg?style=for-the-badge
214214
[commits-shield]: https://img.shields.io/github/commit-activity/y/custom-components/readme.svg?style=for-the-badge
215-
[commits]: https://github.com/custom-components/readme/commits/master
215+
[commits]: https://github.com/custom-components/readme/commits/main
216216
[hacs]: https://github.com/hacs/integration
217217
[hacsbadge]: https://img.shields.io/badge/HACS-Default-orange.svg?style=for-the-badge
218218
[discord]: https://discord.gg/Qa5fW2R

0 commit comments

Comments
 (0)