-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added github action to keep legacy master branch up to date with late…
…st main
- Loading branch information
1 parent
2af5a53
commit 7b71ea0
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
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 -vv | ||
git merge-base main master | ||
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 |