mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-05 23:39:16 +00:00
Delete .github/workflows/App_Header_Merge_update .app-headers_in_update-app-headers
This commit is contained in:
parent
ed1a618f6d
commit
3830527ef2
@ -1,34 +0,0 @@
|
|||||||
name: Update .app-headers with figlet output
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_run:
|
|
||||||
workflows: ["Merge main into update-app-headers"]
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update-app-headers:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Ensure .app-headers file exists silently
|
|
||||||
run: |
|
|
||||||
if [ ! -f ct/.app-headers ]; then
|
|
||||||
touch ct/.app-headers
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Update .app-headers with figlet output silently
|
|
||||||
run: |
|
|
||||||
for script in ct/*.sh; do
|
|
||||||
if grep -q 'APP=' "$script"; then
|
|
||||||
APP_NAME=$(grep -oP 'APP=\K\w+' "$script")
|
|
||||||
if [ ! -z "$APP_NAME" ]; then
|
|
||||||
echo "Adding $APP_NAME to .app-headers"
|
|
||||||
figlet "$APP_NAME" >> ct/.app-headers 2>/dev/null || echo "figlet failed for $APP_NAME"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
Loading…
Reference in New Issue
Block a user