mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-09-07 18:29:10 +02:00
Every push to master has failed to build since 2026-08-19 05:15. The
prebuild-sanitize job dies before running a single step:
EndBug/add-and-commit/v11/action.yml (Line: 25, Col: 18):
Unrecognized named-value: 'github'. Located at position 1 within
expression: github.workspace
Failed to load EndBug/add-and-commit/v11/action.yml
Upstream's v11.1.0, published 2026-08-18 22:44 UTC, put a literal
"${{ github.workspace }}" inside the description of the `cwd` input. Action
metadata descriptions are still parsed as expressions and the `github` context
does not exist there, so the action no longer loads at all. The floating v11
tag was moved to it, which is why nothing changed in this repo and every
workflow using the action broke at once - the builder, the README and stats
refreshers, the CRLF sweep, the image compressor and the issue labeller.
v11.0.0 does not contain that line and loads normally, so pinning to it keeps
the version Dependabot moved us to in #2985 while stepping off the tag. It also
took out an unrelated add-on fix: the builder's revert-on-failure job reverted
the seerr merge (#2993) as collateral, and that is being reapplied separately.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
57 lines
1.7 KiB
YAML
57 lines
1.7 KiB
YAML
# yamllint disable rule:line-length
|
|
---
|
|
# This workflow finds and fixes CRLF endings in a repository
|
|
name: Fix CRLF Endings
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
crlf-to-lf:
|
|
if: github.repository_owner == 'alexbelgium'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository contents
|
|
uses: actions/checkout@v7.0.1
|
|
|
|
- name: Use action to check for CRLF endings
|
|
uses: erclu/check-crlf@v1
|
|
|
|
- name: Commit if needed
|
|
uses: EndBug/add-and-commit@v11.0.0
|
|
with:
|
|
message: "Github bot : CRLF corrected"
|
|
default_author: github_actions
|
|
|
|
fix-crlf:
|
|
name: Fix CRLF Endings
|
|
if: github.repository_owner == 'alexbelgium'
|
|
runs-on: ubuntu-latest # Use a Linux runner
|
|
steps:
|
|
- name: Checkout repository contents
|
|
uses: actions/checkout@v7.0.1 # Use the checkout action
|
|
- name: Find files with CRLF endings
|
|
uses: erclu/check-crlf@v1.2.0 # Use the check-crlf action
|
|
id: check-crlf # Assign an id to this step
|
|
with:
|
|
# Specify the paths to check
|
|
path: |
|
|
./*
|
|
!.git
|
|
!*.png
|
|
!*.jpg
|
|
!*.bin
|
|
- name: Apply dos2unix to files with CRLF endings
|
|
run: |
|
|
# Loop through each file and apply dos2unix
|
|
# shellcheck disable=SC2043
|
|
for f in ${{ steps.check-crlf.outputs.files }}; do
|
|
# Apply dos2unix and keep the original timestamp
|
|
dos2unix -k "$f"
|
|
done
|
|
- name: Commit if needed
|
|
uses: EndBug/add-and-commit@v11.0.0
|
|
with:
|
|
message: "Github bot : CRLF corrected"
|
|
default_author: github_actions
|