push
Some checks failed
CI/CD Pipeline / test (push) Has been cancelled
Update CI/CD Pipeline / update (push) Successful in 1m18s

This commit is contained in:
philipp 2024-10-17 19:56:49 +02:00
parent 6c65fcc9ac
commit 477bd05cb4

View File

@ -2,7 +2,7 @@ name: Update CI/CD Pipeline
on: on:
schedule: schedule:
- cron: '54 * * * *' # Runs the pipeline at the 39th minute of every hour - cron: '57 * * * * '
env: env:
GITEATOKEN: ${{ secrets.GITEATOKEN }} GITEATOKEN: ${{ secrets.GITEATOKEN }}
@ -28,7 +28,8 @@ jobs:
echo "Changes detected. Committing and preparing to push." echo "Changes detected. Committing and preparing to push."
if git ls-remote --exit-code --heads origin update-branch; then if git ls-remote --exit-code --heads origin update-branch; then
echo "Branch 'update-branch' exists. Checking it out." echo "Branch 'update-branch' exists. Checking it out."
git checkout update-branch git fetch
git checkout remote/update-branch
else else
echo "Branch 'update-branch' does not exist. Creating it." echo "Branch 'update-branch' does not exist. Creating it."
git checkout -b update-branch git checkout -b update-branch