Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto PR - main β†’ MAPL-v3 - Add push-to-main to CI for MAPL3 work #34

Merged
merged 4 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/auto_pr_to_mapl3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## :memo: Automatic PR: `main` β†’ `release/MAPL-v3`

### Description

<!-- Write your description here -->

## :file_folder: Modified files
<!-- Diff files - START -->
<!-- Diff files - END -->

30 changes: 30 additions & 0 deletions .github/workflows/push-to-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Push to Main

on:
push:
branches:
- main

jobs:
pull_request:
name: Create Pull Request
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3.3.0
with:
fetch-depth: 0
- name: Run the action
uses: devops-infra/action-pull-request@v0.5.5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_branch: main
target_branch: release/MAPL-v3
label: automatic,MAPL3,Skip Changelog
template: .github/PULL_REQUEST_TEMPLATE/auto_pr_to_mapl3.md
get_diff: true
assignee: ${{ github.actor }}
old_string: "<!-- Write your description here -->"
new_string: ${{ github.event.commits[0].message }}
title: Auto PR - main β†’ MAPL-v3 - ${{ github.event.commits[0].message }}

2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Add CI step to make PR to MAPL3 on push to `main`

### Changed

### Fixed
Expand Down