mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-11 18:04:38 +00:00
Update generate-app-headers.yaml
This commit is contained in:
parent
ef44c2d243
commit
d411d965bd
1 changed files with 13 additions and 3 deletions
16
.github/workflows/generate-app-headers.yaml
vendored
16
.github/workflows/generate-app-headers.yaml
vendored
|
@ -34,15 +34,25 @@ jobs:
|
|||
|
||||
- name: Create or update branch
|
||||
run: |
|
||||
# Check if the branch exists, and create it if not
|
||||
# Check if the branch exists, create it if it doesn't exist
|
||||
git fetch origin
|
||||
git checkout -b update-app-headers || git checkout update-app-headers
|
||||
if ! git show-ref --quiet refs/heads/update-app-headers; then
|
||||
git checkout -b update-app-headers
|
||||
else
|
||||
git checkout update-app-headers
|
||||
fi
|
||||
|
||||
# Configure Git user info
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
# Make sure there are changes to commit
|
||||
# Check if the file exists, and if not, create it
|
||||
if [ ! -f "./misc/.app-headers" ]; then
|
||||
echo "File .app-headers not found, creating it."
|
||||
touch ./misc/.app-headers
|
||||
fi
|
||||
|
||||
# Make sure there are changes to commit (whether new or modified file)
|
||||
git diff --quiet || git commit -am "[core]: update .app-headers to latest version"
|
||||
|
||||
# Push changes to the branch if there are any
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue