Skip to content

Commit

Permalink
ci: minimize schedule, safer push (#47)
Browse files Browse the repository at this point in the history
* ci: only run mon-thu
* ci: don't error if remote branch already exists
  • Loading branch information
wilsonehusin authored May 9, 2024
1 parent 80fd945 commit 5d32395
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Sync
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
- cron: '0 0 * * 1-4'

permissions:
contents: write
Expand Down Expand Up @@ -47,6 +47,9 @@ jobs:
branch="swagger/${api_server_revision}"
set -x
# If remote branch exists, just terminate early.
git fetch origin "${branch}" && exit 0 || true
git checkout -b "${branch}"
git config --global user.email "[email protected]"
git config --global user.name "FireHydrant Bot"
Expand Down

0 comments on commit 5d32395

Please sign in to comment.