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