mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-04 06:50:15 +00:00
Update update_json_date.yml
This commit is contained in:
parent
6c42b5c21a
commit
f1f8f78420
7
.github/workflows/update_json_date.yml
vendored
7
.github/workflows/update_json_date.yml
vendored
@ -18,9 +18,13 @@ jobs:
|
||||
ref: ${{ github.head_ref }}
|
||||
token: ${{ secrets.JSON_APP_KEY }}
|
||||
fetch-depth: 0
|
||||
persist-credentials: true
|
||||
|
||||
- name: Check and Update New JSON Files
|
||||
run: |
|
||||
# Konfiguriere Git mit dem Token für HTTPS
|
||||
git config --global url."https://x-access-token:${GH_TOKEN}@github.com/".insteadOf "https://github.com/"
|
||||
|
||||
BASE_BRANCH=${{ github.event.pull_request.base.ref }}
|
||||
HEAD_BRANCH=${{ github.event.pull_request.head.ref }}
|
||||
|
||||
@ -56,10 +60,11 @@ jobs:
|
||||
|
||||
if [[ -n $(git status -s) ]]; then
|
||||
git commit -am "Update date_created to today's date in new JSON files"
|
||||
git push
|
||||
git push origin HEAD
|
||||
else
|
||||
echo "No changes needed"
|
||||
fi
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.JSON_APP_KEY }}
|
||||
GITHUB_TOKEN: ${{ secrets.JSON_APP_KEY }}
|
||||
APP_ID: ${{ secrets.JSON_APP_ID }}
|
||||
|
Loading…
Reference in New Issue
Block a user