forked from Open-Science-Community-Saudi-Arabia/MOOCs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 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,31 @@ | ||
name: Merge dev Into Main | ||
|
||
on: | ||
schedule: | ||
- cron: "00 13 * * FRI" | ||
# minute (0 - 59), hour (0 - 23), day of month (1 - 31), month(1 - 12 or JAN-DEC), day of week (0 - 6 or SUN-SAT) | ||
|
||
# Set up the Continuous Integration job | ||
|
||
jobs: | ||
main: | ||
name: Create PR Release to Main | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: git checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.ADD_TO_PROJECT_PAT2 }} | ||
|
||
# https://github.com/marketplace/actions/github-pull-request-action | ||
- name: create pull request | ||
uses: repo-sync/pull-request@v2 | ||
with: | ||
destination_repository: "" # If blank, default: checked out repository or triggered repository | ||
source_branch: "dev" | ||
github_token: ${{ secrets.ADD_TO_PROJECT_PAT2 }} | ||
destination_branch: "main" | ||
pr_title: "[Automated] Merge ${{ github.ref_name }} into ${{ github.event.repository.default_branch }}" | ||
pr_body: "Automated Pull Request" | ||
pr_label: "auto-pr" # Comma-separated list (no spaces) | ||
pr_milestone: "Milestone 1" # Milestone name |