mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-02 22:42:42 +02:00
Compare commits
6 Commits
3597b0fafe
...
0cf9fb37a5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0cf9fb37a5 | ||
|
|
447fd42f39 | ||
|
|
d9105b4128 | ||
|
|
01e5498573 | ||
|
|
f6a9ac209a | ||
|
|
5668c15418 |
27
.github/workflows/onpr_check-pr.yaml
vendored
27
.github/workflows/onpr_check-pr.yaml
vendored
@@ -19,11 +19,20 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
# Need the merge commit's parents resolvable (HEAD^1 below): a depth-1 shallow
|
||||
# checkout truncates parent refs entirely at the boundary commit.
|
||||
fetch-depth: 2
|
||||
- name: Find changed addon directories
|
||||
id: find_addons
|
||||
run: |
|
||||
git fetch origin "${{ github.event.before }}" || true
|
||||
changed_config_files=$(git diff --name-only "${{ github.event.before }}" "${{ github.sha }}" | grep -E '^[^/]+/config\.(json|ya?ml)$' || true)
|
||||
# github.event.pull_request.base.sha is a snapshot from event-trigger time and can be
|
||||
# stale if master advances before checkout; HEAD^1 is the actual base this merge
|
||||
# commit was built against, so it's always correct.
|
||||
base_sha=$(git rev-parse HEAD^1)
|
||||
git fetch origin "$base_sha"
|
||||
diff_files=$(git diff --name-only "$base_sha" "${{ github.sha }}")
|
||||
changed_config_files=$(printf '%s\n' "$diff_files" | grep -E '^[^/]+/config\.(json|ya?ml)$' || true)
|
||||
echo "Changed config files:"
|
||||
echo "$changed_config_files"
|
||||
changed_addons=$(printf '%s' "$changed_config_files" | awk -F/ '{print $1}' | sort -u | jq -R -s -c 'split("\n") | map(select(length > 0))')
|
||||
@@ -32,11 +41,17 @@ jobs:
|
||||
- name: Find changelog
|
||||
id: changed-files
|
||||
run: |
|
||||
git fetch origin "${{ github.event.before }}" || true
|
||||
changed_changelog_files=$(git diff --name-only "${{ github.event.before }}" "${{ github.sha }}" | grep -iE '^([^/]+/)?changelog\.(md|txt|ya?ml|json)$' || true)
|
||||
base_sha=$(git rev-parse HEAD^1)
|
||||
git fetch origin "$base_sha"
|
||||
diff_files=$(git diff --name-only "$base_sha" "${{ github.sha }}")
|
||||
changed_changelog_files=$(printf '%s\n' "$diff_files" | grep -iE '^([^/]+/)?changelog\.(md|txt|ya?ml|json)$' || true)
|
||||
echo "$changed_changelog_files"
|
||||
echo "changelogs_files=$changed_changelog_files" >> "$GITHUB_OUTPUT"
|
||||
changed_config_files=$(git diff --name-only "${{ github.event.before }}" "${{ github.sha }}" | grep -E '^[^/]+/config\.(json|ya?ml)$' || true)
|
||||
{
|
||||
echo "changelogs_files<<EOF_CHANGELOG_FILES"
|
||||
echo "$changed_changelog_files"
|
||||
echo "EOF_CHANGELOG_FILES"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
changed_config_files=$(printf '%s\n' "$diff_files" | grep -E '^[^/]+/config\.(json|ya?ml)$' || true)
|
||||
echo "$changed_config_files"
|
||||
all_changed_files=$(echo -e "$changed_config_files\n$changed_changelog_files" | sort -u)
|
||||
changed_addons=$(printf '%s' "$all_changed_files" | awk -F/ '{print $1}' | sort -u | jq -R -s -c 'split("\n") | map(select(length > 0))')
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
## ⚠ Open Request : [✨ [REQUEST] qbittorrent (opened 2025-10-11)](https://github.com/alexbelgium/hassio-addons/issues/2139) by [@nyok92](https://github.com/nyok92)
|
||||
## ⚠ Open Request : [✨ [REQUEST] transmission, document where torrent files are stored (opened 2026-07-14)](https://github.com/alexbelgium/hassio-addons/issues/2852) by [@bilogic](https://github.com/bilogic)
|
||||
# Hass.io Add-ons: Tor with bridges
|
||||
|
||||
|
||||
Reference in New Issue
Block a user