Skip to content

Instantly share code, notes, and snippets.

@Cubik65536
Last active March 3, 2022 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cubik65536/1e7b694511ca1943fa83b04f58c7f72c to your computer and use it in GitHub Desktop.
Save Cubik65536/1e7b694511ca1943fa83b04f58c7f72c to your computer and use it in GitHub Desktop.
Scheduled Merge Remote Action
name: Scheduled Merge Remote Action
on:
push:
branches:
- master
- main
schedule:
- cron: '0 0 * * 1'
# scheduled for 00:00 every Monday
jobs:
merge-upstream:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: master # set the branch to merge to
fetch-depth: 0
- name: Merge Upstream - master
uses: Cubik65536/merge-upstream@v1.1.3
with:
upstream: org/repo # set the upstream repo
upstream-branch: master # set the upstream branch to merge from
branch: master # set the branch to merge to
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment