This commit is contained in:
CanbiZ
2025-07-21 07:48:43 +02:00
parent 39e68296ee
commit cda8d23a39
7 changed files with 34 additions and 16 deletions

View File

@@ -6,7 +6,7 @@ on:
- main
paths:
- 'json/**.json'
workflow_dispatch:
workflow_dispatch:
jobs:
update-app-files:
@@ -23,11 +23,13 @@ jobs:
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: community-scripts
repositories: ProxmoxVED
- name: Generate dynamic branch name
id: timestamp
run: echo "BRANCH_NAME=pr-update-json-$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
- name: Set up GH_TOKEN
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -102,8 +104,8 @@ jobs:
- name: Commit and create PR if changes exist
if: env.changed == 'true'
run: |
git commit -m "Update date in json"
git checkout -b ${{ env.BRANCH_NAME }}
git push origin ${{ env.BRANCH_NAME }}