update repository references and improve script handling
This commit is contained in:
30
.github/workflows/archived_lint-checks.yaml
vendored
30
.github/workflows/archived_lint-checks.yaml
vendored
@@ -3,9 +3,9 @@ name: Lint / Syntax checks
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
hadolint:
|
||||
@@ -50,16 +50,16 @@ jobs:
|
||||
fi
|
||||
done
|
||||
|
||||
# markdownlint:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: ↩️ Checkout
|
||||
# uses: actions/checkout@v4
|
||||
# with:
|
||||
# # Full git history is needed to get a proper list of changed files within `super-linter`
|
||||
# fetch-depth: 0
|
||||
#
|
||||
# - name: 🔎 Run markdownlint
|
||||
# uses: nosborn/github-action-markdown-cli@v3.3.0
|
||||
# with:
|
||||
# config_file: .markdownlint.yaml
|
||||
markdownlint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: ↩️ Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
# Full git history is needed to get a proper list of changed files within `super-linter`
|
||||
fetch-depth: 0
|
||||
|
||||
- name: 🔎 Run markdownlint
|
||||
uses: nosborn/github-action-markdown-cli@v3.3.0
|
||||
with:
|
||||
config_file: .markdownlint.yaml
|
||||
|
||||
1
.github/workflows/daily_README.yaml
vendored
1
.github/workflows/daily_README.yaml
vendored
@@ -7,6 +7,7 @@ on:
|
||||
workflow_dispatch: null
|
||||
jobs:
|
||||
README_updater:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
|
||||
4
.github/workflows/daily_stale.yml
vendored
4
.github/workflows/daily_stale.yml
vendored
@@ -9,7 +9,7 @@ name: Mark stale issues and pull requests
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 12 * * *'
|
||||
- cron: '0 12 * * 0'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -20,7 +20,7 @@ jobs:
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/stale@v9.0.0
|
||||
- uses: actions/stale@v8
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
|
||||
|
||||
7
.github/workflows/helper_stats_graphs.yaml
vendored
7
.github/workflows/helper_stats_graphs.yaml
vendored
@@ -7,6 +7,7 @@ on:
|
||||
|
||||
jobs:
|
||||
stats_graphs:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
@@ -230,11 +231,11 @@ jobs:
|
||||
run: |
|
||||
echo "Starting run"
|
||||
# Get stars
|
||||
wget -S -O .github/stars.svg https://contrib.rocks/image?repo=Mesteriis/hassio-addons-avm || true
|
||||
wget -S -O .github/stars.svg https://contrib.rocks/image?repo=alexbelgium/hassio-addons || true
|
||||
# Get stars2
|
||||
wget -S -O .github/stars2.svg https://git-lister.onrender.com/api/stars/Mesteriis/hassio-addons-avm?limit=30 || true
|
||||
wget -S -O .github/stars2.svg https://git-lister.onrender.com/api/stars/alexbelgium/hassio-addons?limit=30 || true
|
||||
# Get stars evolution
|
||||
wget -S -O .github/starsevol.svg "https://api.star-history.com/svg?repos=Mesteriis/hassio-addons-avm&type=Date" || true
|
||||
wget -S -O .github/starsevol.svg "https://api.star-history.com/svg?repos=alexbelgium/hassio-addons&type=Date" || true
|
||||
- name: Commit if needed
|
||||
uses: EndBug/add-and-commit@v9
|
||||
with:
|
||||
|
||||
2
.github/workflows/on_issues.yml
vendored
2
.github/workflows/on_issues.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
||||
echo "Starting"
|
||||
|
||||
# Get issues list
|
||||
curl -s -L https://api.github.com/repos/Mesteriis/hassio-addons-avm/issues > issueslist
|
||||
curl -s -L https://api.github.com/repos/alexbelgium/hassio-addons/issues > issueslist
|
||||
# Go through all folders, add to filters if not existing
|
||||
for f in $( find -- * -maxdepth 0 -type d | sort -r ); do
|
||||
if [ -f "$f"/config.json ]; then
|
||||
|
||||
40
.github/workflows/onpr_automerge.old
vendored
Normal file
40
.github/workflows/onpr_automerge.old
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
# yamllint disable rule:line-length
|
||||
# shellcheck disable=SC2043
|
||||
---
|
||||
name: automerge
|
||||
on:
|
||||
pull_request_review:
|
||||
types:
|
||||
- submitted
|
||||
issue_comment:
|
||||
types: created
|
||||
check_suite:
|
||||
types:
|
||||
- completed
|
||||
status: {}
|
||||
jobs:
|
||||
labeler:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Add the automerge label
|
||||
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/automerge') }}
|
||||
uses: actions/github-script@v4
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
github.issues.addLabels({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
labels: ['automerge']
|
||||
})
|
||||
automerge:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [labeler]
|
||||
steps:
|
||||
- id: automerge
|
||||
if: ${{ github.event.issue.pull_request }}
|
||||
name: automerge
|
||||
uses: "pascalgn/automerge-action@v0.16.2"
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
17
.github/workflows/onpush_builder.yaml
vendored
17
.github/workflows/onpush_builder.yaml
vendored
@@ -16,6 +16,7 @@ on:
|
||||
|
||||
jobs:
|
||||
correct_path_filters:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: ↩️ Checkout
|
||||
@@ -128,6 +129,20 @@ jobs:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Resolve Symlinks
|
||||
run: |
|
||||
# Find all symlinks and replace them with the real files or directories
|
||||
find . -type l | while read -r link; do
|
||||
target="$(readlink -f "$link")"
|
||||
# Remove the symlink
|
||||
rm "$link"
|
||||
if [ -d "$target" ]; then
|
||||
cp -R "$target" "$link"
|
||||
else
|
||||
cp "$target" "$link"
|
||||
fi
|
||||
done
|
||||
|
||||
- name: Get information
|
||||
id: info
|
||||
uses: home-assistant/actions/helpers/info@master
|
||||
@@ -169,7 +184,7 @@ jobs:
|
||||
- name: Build ${{ matrix.addon }} add-on
|
||||
id: builderstep
|
||||
if: steps.check.outputs.build_arch == 'true'
|
||||
uses: home-assistant/builder@master
|
||||
uses: home-assistant/builder@2025.02.0
|
||||
env:
|
||||
CAS_API_KEY: ${{ secrets.CAS_API_KEY }}
|
||||
with:
|
||||
|
||||
5
.github/workflows/onpush_superlinter.yml
vendored
5
.github/workflows/onpush_superlinter.yml
vendored
@@ -9,9 +9,9 @@ name: Lint On Change
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
branches: [ master ]
|
||||
jobs:
|
||||
|
||||
run-lint:
|
||||
@@ -20,6 +20,7 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
# Full git history is needed to get a proper list of changed files within `super-linter`
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Lint Code Base
|
||||
|
||||
2
.github/workflows/weekly-supelinter.yaml
vendored
2
.github/workflows/weekly-supelinter.yaml
vendored
@@ -14,6 +14,7 @@ on:
|
||||
|
||||
jobs:
|
||||
make-executable:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
@@ -63,6 +64,7 @@ jobs:
|
||||
|
||||
check_crlf:
|
||||
name: Check CRLF action
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
8
.github/workflows/weekly_addons_updater
vendored
8
.github/workflows/weekly_addons_updater
vendored
@@ -27,10 +27,10 @@ jobs:
|
||||
run: |
|
||||
mkdir -p /data
|
||||
echo "{" >> /data/config.json
|
||||
echo " repository=\"Mesteriis/hassio-addons-avm\"," >> /data/config.json
|
||||
echo " gituser=\"Mesteriis/hassio-addons-avm\"," >> /data/config.json
|
||||
echo " gitapi=\"Mesteriis/hassio-addons-avm\"," >> /data/config.json
|
||||
echo " gitmail=\"Mesteriis/hassio-addons-avm\"," >> /data/config.json
|
||||
echo " repository=\"alexbelgium/hassio-addons\"," >> /data/config.json
|
||||
echo " gituser=\"alexbelgium/hassio-addons\"," >> /data/config.json
|
||||
echo " gitapi=\"alexbelgium/hassio-addons\"," >> /data/config.json
|
||||
echo " gitmail=\"alexbelgium/hassio-addons\"," >> /data/config.json
|
||||
echo " verbose=false" >> /data/config.json
|
||||
echo "}" >> /data/config.json
|
||||
./addons_updater/rootfs/etc/cont-init.d/99-run.sh
|
||||
|
||||
1
.github/workflows/weekly_bashbeautify.yaml
vendored
1
.github/workflows/weekly_bashbeautify.yaml
vendored
@@ -11,6 +11,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
lint-bash:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
name: Lint Bash Scripts
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
||||
2
.github/workflows/weekly_crlftolf.yaml
vendored
2
.github/workflows/weekly_crlftolf.yaml
vendored
@@ -8,6 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
crlf-to-lf:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository contents
|
||||
@@ -24,6 +25,7 @@ jobs:
|
||||
|
||||
fix-crlf:
|
||||
name: Fix CRLF Endings
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-latest # Use a Linux runner
|
||||
steps:
|
||||
- name: Checkout repository contents
|
||||
|
||||
1
.github/workflows/weekly_reduceimagesize.yml
vendored
1
.github/workflows/weekly_reduceimagesize.yml
vendored
@@ -9,6 +9,7 @@ on:
|
||||
|
||||
jobs:
|
||||
calibre:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
name: calibreapp/image-actions
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
1
.github/workflows/weekly_sortjson.yaml
vendored
1
.github/workflows/weekly_sortjson.yaml
vendored
@@ -9,6 +9,7 @@ on:
|
||||
|
||||
jobs:
|
||||
sort_json:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
|
||||
13
.github/workflows/weekly_stats.yaml
vendored
13
.github/workflows/weekly_stats.yaml
vendored
@@ -8,6 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
stats_updater:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
@@ -38,22 +39,22 @@ jobs:
|
||||
if [ -f "$f"/config.json ] && jq -e '.image' "$f/config.json"; then
|
||||
SLUG="$(jq -r '.image' "$f/config.json" | awk -F 'alexbelgium/|-{arch' '{print $2}')"
|
||||
if [[ "$(jq '.arch[]' "$f/config.json")" == *"armv7"* ]]; then
|
||||
ARCH=armv7 && COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/Mesteriis/hassio-addons-avm/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')"
|
||||
until [ -n "$COUNT" ]; do COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/Mesteriis/hassio-addons-avm/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')" && sleep 5; ((c++)) && echo "repeat $c" && if [[ "$c" == 10 ]]; then count=0; fi; done
|
||||
ARCH=armv7 && COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')"
|
||||
until [ -n "$COUNT" ]; do COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')" && sleep 5; ((c++)) && echo "repeat $c" && if [[ "$c" == 10 ]]; then count=0; fi; done
|
||||
COUNT="${COUNT//,/}"
|
||||
COUNT1="$COUNT"
|
||||
echo "$COUNT $ARCH users with $SLUG" && DOWNLOADS="$(( DOWNLOADS + COUNT))"
|
||||
else COUNT1="-"; fi
|
||||
if [[ "$(jq '.arch[]' "$f/config.json")" == *"amd64"* ]]; then
|
||||
ARCH=amd64 && COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/Mesteriis/hassio-addons-avm/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')"
|
||||
until [ -n "$COUNT" ]; do COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/Mesteriis/hassio-addons-avm/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')" && sleep 5; ((c++)) && echo "repeat $c" && if [[ "$c" == 10 ]]; then count=0; fi; done
|
||||
ARCH=amd64 && COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')"
|
||||
until [ -n "$COUNT" ]; do COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')" && sleep 5; ((c++)) && echo "repeat $c" && if [[ "$c" == 10 ]]; then count=0; fi; done
|
||||
COUNT="${COUNT//,/}"
|
||||
COUNT2="$COUNT"
|
||||
echo "$COUNT $ARCH users with $SLUG" && DOWNLOADS="$(( DOWNLOADS + COUNT))"
|
||||
else COUNT2="-"; fi
|
||||
if [[ "$(jq '.arch[]' "$f/config.json")" == *"aarch64"* ]]; then
|
||||
ARCH=aarch64 && COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/Mesteriis/hassio-addons-avm/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')"
|
||||
until [ -n "$COUNT" ]; do COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/Mesteriis/hassio-addons-avm/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')" && sleep 5; ((c++)) && echo "repeat $c" && if [[ "$c" == 10 ]]; then count=0; fi; done
|
||||
ARCH=aarch64 && COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')"
|
||||
until [ -n "$COUNT" ]; do COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')" && sleep 5; ((c++)) && echo "repeat $c" && if [[ "$c" == 10 ]]; then count=0; fi; done
|
||||
COUNT="${COUNT//,/}"
|
||||
COUNT3="$COUNT"
|
||||
echo "$COUNT $ARCH users with $SLUG" && DOWNLOADS="$(( DOWNLOADS + COUNT))"
|
||||
|
||||
Reference in New Issue
Block a user