Skip to content

Commit

Permalink
finalize
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Koenig <[email protected]>
  • Loading branch information
ko3n1g committed Nov 12, 2024
1 parent 53bf56b commit d8596e9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/sync_branch.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: sync main with dev
on:
push:
# schedule:
# - 0 8 * * * # Runs at 8am UTC
schedule:
- 0 8 * * * # Runs at 8am UTC

defaults:
run:
Expand All @@ -20,7 +19,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ko3n1g/dev
ref: dev
fetch-depth: 0
token: ${{ secrets.PAT }}

Expand All @@ -34,7 +33,7 @@ jobs:
id: commit-delta
run: |
git fetch origin main:main
DELTA=$(git cherry -v ko3n1g/dev main | tr '+' '*')
DELTA=$(git cherry -v dev main | tr '+' '*')
DELTA=$(echo "${DELTA//$'\n'/<<<NEWLINE>>>}")
echo "main=$DELTA" | tee -a "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -70,7 +69,7 @@ jobs:
PR_NUMBER=$(echo -E "$PRs" \
| jq '.[]
| select(.head.ref == "ko3n1g/dev")
| select(.head.ref == "dev")
| .number'
)
set -x
Expand Down

0 comments on commit d8596e9

Please sign in to comment.