mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-08 16:59:17 +00:00
Compare commits
20 Commits
2df0643406
...
74c9684bba
Author | SHA1 | Date | |
---|---|---|---|
|
74c9684bba | ||
|
41c4b11575 | ||
|
bf89a037bd | ||
|
e503ce3806 | ||
|
c934085b16 | ||
|
c57f0be737 | ||
|
e6530e14dd | ||
|
9174536e95 | ||
|
aa3a3997f0 | ||
|
37da2e5e1c | ||
|
18538897ba | ||
|
dbfb72807a | ||
|
e756c49e50 | ||
|
4ae131e102 | ||
|
f498f349f3 | ||
|
8e525611bd | ||
|
910f3bb6f4 | ||
|
c8319f044c | ||
|
ac61a925cc | ||
|
4ce474382a |
45
.github/workflows/check_and_update_json_date.yml
vendored
45
.github/workflows/check_and_update_json_date.yml
vendored
@ -1,45 +1,32 @@
|
|||||||
name: Check and Update JSON Date
|
name: Update Date Created in PR
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [synchronize, opened, reopened, edited]
|
|
||||||
paths:
|
paths:
|
||||||
- "json/*.json"
|
- '*.json'
|
||||||
|
types: [opened, synchronize]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-date:
|
update-date:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout PR branch
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
with:
|
||||||
python-version: 3.12
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install yq
|
||||||
run: pip install jq
|
|
||||||
|
|
||||||
- name: Find and Update JSON files in /json folder
|
|
||||||
run: |
|
run: |
|
||||||
TODAY=$(date +%Y-%m-%d)
|
curl -sSL https://github.com/mikefarah/yq/releases/download/v4.18.1/yq_linux_amd64 -o /usr/local/bin/yq
|
||||||
for file in $(git diff --diff-filter=A --name-only HEAD | grep '^json/.*\.json$'); do
|
chmod +x /usr/local/bin/yq
|
||||||
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
|
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Update date_created in JSON
|
||||||
run: |
|
run: |
|
||||||
git config user.name "GitHub Action"
|
TODAY=$(date -u +%Y-%m-%d)
|
||||||
git config user.email "action@github.com"
|
yq e '.date_created = strftime("%Y-%m-%d")' -i your_file.json
|
||||||
git commit -m "Update date_created in new JSON files" || echo "No changes to commit"
|
|
||||||
|
|
||||||
- name: Push changes
|
- name: Commit changes if necessary
|
||||||
uses: ad-m/github-push-action@v0.6.0
|
run: |
|
||||||
with:
|
git status
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
git diff --quiet || (git commit -m "Update date_created to $TODAY" && git push origin ${{ github.head_ref }})
|
||||||
|
@ -16,6 +16,14 @@ All LXC instances created using this repository come pre-installed with Midnight
|
|||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
Do not break established syntax in this file, as it is automatically updated by a Github Workflow
|
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
|
## 2025-01-14
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
@ -40,6 +48,7 @@ Do not break established syntax in this file, as it is automatically updated by
|
|||||||
|
|
||||||
### 🧰 Maintenance
|
### 🧰 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))
|
- [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
|
## 2025-01-13
|
||||||
|
@ -15,11 +15,13 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y curl
|
$STD apt-get install -y \
|
||||||
$STD apt-get install -y sudo
|
curl \
|
||||||
$STD apt-get install -y mc
|
sudo \
|
||||||
$STD apt-get install -y gpg
|
mc \
|
||||||
$STD apt-get install -y git
|
gpg \
|
||||||
|
git \
|
||||||
|
ffmpeg
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing Python3 Dependencies"
|
msg_info "Installing Python3 Dependencies"
|
||||||
|
Loading…
Reference in New Issue
Block a user