Skip to content

Commit

Permalink
Merge pull request #817 from City-of-Helsinki/UHF-9113_sync_6.x
Browse files Browse the repository at this point in the history
UHF-9113: Added hdbt v6-sync github action.
  • Loading branch information
khalima authored Oct 31, 2023
2 parents 09c80a3 + ca7560e commit 00176c7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/v6-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: v6 sync

on:
push:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: '6.x'

- name: Merge main to 6.x branch
run: |
# Set git user from the latest commit
git config user.name "$(git --no-pager log --format=format:'%an' -n 1)"
git config user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
git pull origin main
git push origin 6.x

0 comments on commit 00176c7

Please sign in to comment.