This repository has been archived by the owner on Dec 9, 2023. It is now read-only.
Update default_config #194
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update default_config | |
on: | |
workflow_dispatch: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 0 * * *" | |
concurrency: | |
group: "${{ github.workflow }}@${{ github.ref_name }}" | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- name: "Checkout ${{ github.head_ref }}" | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
path: "clone" | |
- name: "Checkout Git https://github.com/home-assistant/core/" | |
uses: actions/checkout@v3 | |
with: | |
repository: "home-assistant/core" | |
path: "core" | |
- name: Update files via script | |
shell: bash | |
run: "clone/bin/update.sh" | |
# - name: HACS Action | |
# uses: "hacs/action@main" | |
# with: | |
# category: "integration" | |
# - name: Home Assistant 'hassfest' Action | |
# uses: "home-assistant/actions/hassfest@master" | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
id: auto-commit-action | |
with: | |
repository: clone | |
- name: Create Release | |
if: steps.auto-commit-action.outputs.changes_detected == 'true' | |
uses: ncipollo/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
skipIfReleaseExists: true | |
tag: "${{ env.latest_tag }}" | |
name: "Release ${{ env.latest_tag }}" |