Skip to content

Commit

Permalink
Added github action to keep legacy master branch up to date with late…
Browse files Browse the repository at this point in the history
…st main
  • Loading branch information
giuliomoro committed Jan 31, 2025
1 parent 2af5a53 commit c525064
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main-to-master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build

on:
push:
branches:
- main

jobs:
update-legacy-master:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Push
run: |
git pull
git branch
git checkout master
git log -n1 master
git log -n1 main
git branch
git merge --ff main
git push origin
#uses: ad-m/github-push-action@master
#with:
#github_token: ${{ secrets.GITHUB_TOKEN }}
#force_with_lease: true
#branch: master

0 comments on commit c525064

Please sign in to comment.