mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-09 17:29:16 +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 }}
|
ref: ${{ github.head_ref }}
|
||||||
token: ${{ secrets.JSON_APP_KEY }}
|
token: ${{ secrets.JSON_APP_KEY }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
persist-credentials: true
|
||||||
|
|
||||||
- name: Check and Update New JSON Files
|
- name: Check and Update New JSON Files
|
||||||
run: |
|
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 }}
|
BASE_BRANCH=${{ github.event.pull_request.base.ref }}
|
||||||
HEAD_BRANCH=${{ github.event.pull_request.head.ref }}
|
HEAD_BRANCH=${{ github.event.pull_request.head.ref }}
|
||||||
|
|
||||||
@ -56,10 +60,11 @@ jobs:
|
|||||||
|
|
||||||
if [[ -n $(git status -s) ]]; then
|
if [[ -n $(git status -s) ]]; then
|
||||||
git commit -am "Update date_created to today's date in new JSON files"
|
git commit -am "Update date_created to today's date in new JSON files"
|
||||||
git push
|
git push origin HEAD
|
||||||
else
|
else
|
||||||
echo "No changes needed"
|
echo "No changes needed"
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.JSON_APP_KEY }}
|
GH_TOKEN: ${{ secrets.JSON_APP_KEY }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.JSON_APP_KEY }}
|
||||||
APP_ID: ${{ secrets.JSON_APP_ID }}
|
APP_ID: ${{ secrets.JSON_APP_ID }}
|
||||||
|
Loading…
Reference in New Issue
Block a user