Compare commits

...

20 Commits

Author SHA1 Message Date
github-actions[bot]
74c9684bba Update CHANGELOG.md 2025-01-15 10:04:17 +00:00
CanbiZ
41c4b11575
Update check_and_update_json_date.yml 2025-01-15 11:04:03 +01:00
CanbiZ
bf89a037bd
Update check_and_update_json_date.yml 2025-01-15 11:00:17 +01:00
CanbiZ
e503ce3806
Update check_and_update_json_date.yml 2025-01-15 10:59:01 +01:00
CanbiZ
c934085b16
Update check_and_update_json_date.yml 2025-01-15 10:56:24 +01:00
CanbiZ
c57f0be737
Update check_and_update_json_date.yml 2025-01-15 10:54:23 +01:00
CanbiZ
e6530e14dd
Update check_and_update_json_date.yml 2025-01-15 10:52:34 +01:00
CanbiZ
9174536e95
Update check_and_update_json_date.yml 2025-01-15 10:50:30 +01:00
CanbiZ
aa3a3997f0
Update check_and_update_json_date.yml 2025-01-15 10:45:22 +01:00
CanbiZ
37da2e5e1c
Update check_and_update_json_date.yml 2025-01-15 10:41:47 +01:00
CanbiZ
18538897ba
Update check_and_update_json_date.yml 2025-01-15 10:40:38 +01:00
CanbiZ
dbfb72807a
Update check_and_update_json_date.yml 2025-01-15 10:37:30 +01:00
CanbiZ
e756c49e50
Update check_and_update_json_date.yml 2025-01-15 10:25:38 +01:00
CanbiZ
4ae131e102
Update check_and_update_json_date.yml 2025-01-15 10:21:44 +01:00
CanbiZ
f498f349f3
Update check_and_update_json_date.yml 2025-01-15 10:18:33 +01:00
CanbiZ
8e525611bd Merge branch 'main' of https://github.com/community-scripts/ProxmoxVE 2025-01-15 09:58:44 +01:00
CanbiZ
910f3bb6f4 switch shellcheck to backup 2025-01-15 09:58:37 +01:00
CanbiZ
c8319f044c
Update check_and_update_json_date.yml 2025-01-15 09:58:13 +01:00
CanbiZ
ac61a925cc
Fix: Add FFMPEG for OpenWebUI (#1497) 2025-01-15 09:04:52 +01:00
community-scripts-pr-app[bot]
4ce474382a
Update CHANGELOG.md (#1493)
Some checks failed
Create Changelog Pull Request / update-changelog-pull-request (push) Waiting to run
Shellcheck / Shellcheck (push) Has been cancelled
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-14 22:21:14 +01:00
4 changed files with 32 additions and 34 deletions

View File

@ -1,45 +1,32 @@
name: Check and Update JSON Date
name: Update Date Created in PR
on:
pull_request:
types: [synchronize, opened, reopened, edited]
paths:
- "json/*.json"
- '*.json'
types: [opened, synchronize]
jobs:
update-date:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- name: Checkout PR branch
uses: actions/checkout@v4
with:
python-version: 3.12
ref: ${{ github.head_ref }}
- name: Install dependencies
run: pip install jq
- name: Find and Update JSON files in /json folder
- name: Install yq
run: |
TODAY=$(date +%Y-%m-%d)
for file in $(git diff --diff-filter=A --name-only HEAD | grep '^json/.*\.json$'); do
if jq -e '.date_created' $file > /dev/null 2>&1; then
echo "Updating date_created in $file"
jq --arg date "$TODAY" '.date_created = $date' $file > temp.json && mv temp.json $file
git add $file
fi
done
curl -sSL https://github.com/mikefarah/yq/releases/download/v4.18.1/yq_linux_amd64 -o /usr/local/bin/yq
chmod +x /usr/local/bin/yq
- name: Commit changes
- name: Update date_created in JSON
run: |
git config user.name "GitHub Action"
git config user.email "action@github.com"
git commit -m "Update date_created in new JSON files" || echo "No changes to commit"
TODAY=$(date -u +%Y-%m-%d)
yq e '.date_created = strftime("%Y-%m-%d")' -i your_file.json
- name: Push changes
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Commit changes if necessary
run: |
git status
git diff --quiet || (git commit -m "Update date_created to $TODAY" && git push origin ${{ github.head_ref }})

View File

@ -16,6 +16,14 @@ All LXC instances created using this repository come pre-installed with Midnight
> [!IMPORTANT]
Do not break established syntax in this file, as it is automatically updated by a Github Workflow
## 2025-01-15
### Changed
### 🚀 Updated Scripts
- Fix: Add FFMPEG for OpenWebUI [@MickLesk](https://github.com/MickLesk) ([#1497](https://github.com/community-scripts/ProxmoxVE/pull/1497))
## 2025-01-14
### Changed
@ -40,6 +48,7 @@ Do not break established syntax in this file, as it is automatically updated by
### 🧰 Maintenance
- Hotfix build.func: Error when tags are empty [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#1492](https://github.com/community-scripts/ProxmoxVE/pull/1492))
- [core] Update build.func: Fix bug with advanced tags [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#1473](https://github.com/community-scripts/ProxmoxVE/pull/1473))
## 2025-01-13

View File

@ -15,11 +15,13 @@ network_check
update_os
msg_info "Installing Dependencies"
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y gpg
$STD apt-get install -y git
$STD apt-get install -y \
curl \
sudo \
mc \
gpg \
git \
ffmpeg
msg_ok "Installed Dependencies"
msg_info "Installing Python3 Dependencies"