Compare commits

...

19 Commits

Author SHA1 Message Date
github-actions[bot]
42f1195ea9 Update CHANGELOG.md 2025-01-24 23:36:17 +00:00
moodyblue
b01331480c
openHAB - Update to Zulu21 (#1734)
* Use Zulu 21 instead of 17

* Increase RAM from 2 to 3GB

* Revert RAM to 2G

* Add https url
2025-01-25 00:36:01 +01:00
github-actions[bot]
198c5caeaa
Update .app files (#1728)
Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
2025-01-25 00:10:53 +01:00
CanbiZ
b4f2594cef
Update auto-update-app-headers.yml
Some checks failed
Auto Update .app-files / update-app-files (push) Waiting to run
Shellcheck / Shellcheck (push) Waiting to run
Create Changelog Pull Request / update-changelog-pull-request (push) Waiting to run
Frontend CI/CD / build (push) Has been cancelled
Frontend CI/CD / deploy (push) Has been cancelled
2025-01-24 14:50:48 +01:00
CanbiZ
2db7cb1fdb
Update generate-app-headers.sh 2025-01-24 14:50:19 +01:00
CanbiZ
7ff44c562b
Update auto-update-app-headers.yml 2025-01-24 14:48:15 +01:00
CanbiZ
7723269bbc
Update generate-app-headers.sh 2025-01-24 14:47:51 +01:00
CanbiZ
7c3ad9cfcf Create test.txt 2025-01-24 14:46:14 +01:00
CanbiZ
dbb138317d remove headers for testing 2025-01-24 14:45:32 +01:00
CanbiZ
75f90409eb
Update actualbudget-install.sh 2025-01-24 14:41:03 +01:00
CanbiZ
17745c344b
Update actualbudget.sh 2025-01-24 14:30:18 +01:00
github-actions[bot]
4e8317d30c
Update .app files (#1725)
Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
2025-01-24 14:24:01 +01:00
CanbiZ
0313de615a
Update auto-update-app-headers.yml 2025-01-24 14:18:39 +01:00
CanbiZ
5415bfd21a
Update generate-app-headers.sh 2025-01-24 14:16:47 +01:00
CanbiZ
3d99b49a99
Update auto-update-app-headers.yml 2025-01-24 14:14:45 +01:00
CanbiZ
d852e7b098
Update auto-update-app-headers.yml 2025-01-24 14:13:05 +01:00
CanbiZ
f23da27ba2
Update auto-update-app-headers.yml 2025-01-24 14:11:39 +01:00
CanbiZ
1c008a1742
diff check 2025-01-24 14:09:09 +01:00
community-scripts-pr-app[bot]
3cea72cf51
Update CHANGELOG.md (#1720)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-24 14:06:24 +01:00
230 changed files with 54 additions and 49 deletions

View File

@ -6,7 +6,7 @@ on:
- main
paths:
- 'ct/**.sh'
workflow_dispatch: # Ermöglicht das manuelle Ausführen der Action
workflow_dispatch:
jobs:
update-app-files:
@ -21,17 +21,21 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
# Step 2: Set up Git user for committing changes
# Step 2: Disable file mode changes detection
- name: Disable file mode changes
run: git config core.fileMode false
# Step 3: Set up Git user for committing changes
- name: Set up Git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
# Step 3: Install figlet
# Step 4: Install figlet
- name: Install figlet
run: sudo apt-get install -y figlet
# Step 4: Run the updated generate-app-files.sh script
# Step 5: Run the updated generate-app-files.sh script
- name: Run generate-app-files.sh
run: |
chmod +x .github/workflows/scripts/generate-app-headers.sh
@ -39,51 +43,40 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Step 5: Check for changes
# Step 6: Check if there are any changes
- name: Check if there are any changes
id: verify-diff
run: |
git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT
echo "Checking for changes..."
git status
if git diff --quiet; then
echo "No changes detected."
echo "changed=false" >> $GITHUB_OUTPUT
else
echo "Changes detected:"
git diff --stat
echo "changed=true" >> $GITHUB_OUTPUT
fi
# Step 6: Commit changes (if any) and create a PR
# Step 7: Commit changes (if any) and create a PR
- name: Commit and create PR if changes exist
if: steps.verify-diff.outputs.changed == 'true'
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add ct/*.app
git add -A
git commit -m "Update .app files"
git checkout -b pr-update-app-files
git push origin pr-update-app-files --force
# Create PR against main
gh pr create --title "[core] update .app files" \
--body "This PR is auto-generated by a Github Action to update the .app files." \
--body "This PR is auto-generated by a GitHub Action to update the .app files." \
--head pr-update-app-files \
--base main \
--label "automated pr"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Re-approve pull request after update
if: steps.verify-diff.outputs.changed == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Get the PR number for the current branch
PR_NUMBER=$(gh pr list --head "pr-update-app-files" --json number --jq '.[].number')
# Check if a PR number was retrieved
if [ -n "$PR_NUMBER" ]; then
# Get the PR author
PR_AUTHOR=$(gh pr view "$PR_NUMBER" --json author --jq '.author.login')
# Approve the PR if it was not created by the bot
if [ "$PR_AUTHOR" != "github-actions[bot]" ]; then
gh pr review "$PR_NUMBER" --approve
else
echo "PR was created by the bot, skipping review."
fi
else
echo "No PR found for the current branch."
fi
# Step 8: Output success message when no changes
- name: No changes detected
if: steps.verify-diff.outputs.changed == 'false'
run: echo "No changes to commit. Workflow completed successfully."

22
.github/workflows/scripts/generate-app-headers.sh vendored Normal file → Executable file
View File

@ -1,24 +1,30 @@
#!/usr/bin/env bash
# Base directory for headers
headers_dir="./ct/headers"
# Ensure the headers directory exists and clear it
mkdir -p "$headers_dir"
rm -f "$headers_dir"/*
# Find all .sh files in ./ct directory, sorted alphabetically
find ./ct -type f -name "*.sh" | sort | while read -r script; do
# Extract the APP name from the APP line
app_name=$(grep -oP '^APP="\K[^"]+' "$script" 2>/dev/null)
if [[ -n "$app_name" ]]; then
# Define the output file name based on the .sh file
output_file="${script%.sh}.app"
# Define the output file name in the headers directory
output_file="${headers_dir}/$(basename "${script%.*}")"
# Check if the output file already exists
if [[ ! -f "$output_file" ]]; then
# Generate figlet output
figlet_output=$(figlet -f slant "$app_name")
# Generate figlet output
figlet_output=$(figlet -f slant "$app_name")
# Write the figlet output to the file
# Check if figlet output is not empty
if [[ -n "$figlet_output" ]]; then
echo "$figlet_output" > "$output_file"
echo "Generated: $output_file"
else
echo "Skipped: $output_file already exists"
echo "Figlet failed for $app_name in $script"
fi
else
echo "No APP name found in $script, skipping."

View File

@ -27,10 +27,15 @@ Do not break established syntax in this file, as it is automatically updated by
### 🚀 Updated Scripts
- openHAB - Update to Zulu21 [@moodyblue](https://github.com/moodyblue) ([#1734](https://github.com/community-scripts/ProxmoxVE/pull/1734))
- Feature: Filebrowser Script > Redesign | Update Logic | Remove Logic [@MickLesk](https://github.com/MickLesk) ([#1716](https://github.com/community-scripts/ProxmoxVE/pull/1716))
- Feature: Ubuntu 22.04 VM > Redesign | Optional HDD-Size Prompt [@MickLesk](https://github.com/MickLesk) ([#1712](https://github.com/community-scripts/ProxmoxVE/pull/1712))
- Feature: Ubuntu 24.04 VM > Redesign | Optional HDD-Size Prompt | cifs support [@MickLesk](https://github.com/MickLesk) ([#1714](https://github.com/community-scripts/ProxmoxVE/pull/1714))
### 🧰 Maintenance
- [Core] Better Creation of App Headers for next feature [@MickLesk](https://github.com/MickLesk) ([#1719](https://github.com/community-scripts/ProxmoxVE/pull/1719))
## 2025-01-23
### Changed

View File

@ -43,10 +43,10 @@ function update_script() {
msg_info "Updating ${APP} to ${RELEASE}"
cd /tmp
wget -q https://github.com/actualbudget/actual-server/archive/refs/tags/v${RELEASE}.tar.gz
tar -xzf v${RELEASE}.tar.gz >/dev/null 2>&1
mv /opt/actualbudget /opt/actualbudget_bak
mkdir -p /opt/actualbudget/
mv *ctual-server-* /opt/actualbudget
tar -xzf v${RELEASE}.tar.gz >/dev/null 2>&1
mv *ctual-server-*/* /opt/actualbudget
mv /opt/actualbudget_bak/.env /opt/actualbudget
mv /opt/actualbudget_bak/server-files /opt/actualbudget/server-files
cd /opt/actualbudget

Some files were not shown because too many files have changed in this diff Show More