mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
delete
This commit is contained in:
32
.github/workflows/weekly_sortjson.yaml
vendored
32
.github/workflows/weekly_sortjson.yaml
vendored
@@ -1,32 +0,0 @@
|
||||
# yamllint disable rule:line-length
|
||||
---
|
||||
name: Weekly sort json
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * 0"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
sort_json:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v4
|
||||
- name: Run script file
|
||||
id: sort
|
||||
run: |
|
||||
for files in */*.json; do
|
||||
echo "Sorting $files"
|
||||
jq --sort-keys . "$files" > config2.json && cat config2.json > "$files" && rm config2.json
|
||||
echo "changed=1" >> "$GITHUB_OUTPUT"
|
||||
done
|
||||
shell: bash
|
||||
- name: Create New Pull Request If Needed
|
||||
if: steps.sort.outputs.changed != ''
|
||||
uses: peter-evans/create-pull-request@v7
|
||||
with:
|
||||
title: "Github bot : json sorted"
|
||||
branch-suffix: timestamp
|
||||
commit-message: "Github bot : json sorted"
|
||||
Reference in New Issue
Block a user