-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #384 from dthaler/propagate
Add github workflow to copy changes from main into next-minor
- Loading branch information
Showing
1 changed file
with
56 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,56 @@ | ||
# This action will copy changes from main into the next-minor branch, and is done whenever the main branch is updated. | ||
# | ||
# For documentation on the github environment, see | ||
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners | ||
# | ||
# For documentation on the syntax of this file, see | ||
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
merge-to-next-minor: | ||
permissions: | ||
contents: write # for Git to git push | ||
pull-requests: write # for Git to create a pull request | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 | ||
with: | ||
disable-sudo: true | ||
egress-policy: audit | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: next-minor | ||
|
||
- name: Merge changes from main | ||
run: | | ||
git fetch | ||
git merge origin/main | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
title: 'Update next-minor from main' | ||
commit-message: Merge main into next-minor | ||
body: | | ||
Merge main into next-minor | ||
This PR is auto-generated by | ||
[create-pull-request](https://github.com/peter-evans/create-pull-request). | ||
labels: automated pr | ||
|
||
- name: Check outputs | ||
if: ${{ steps.cpr.outputs.pull-request-number }} | ||
run: | | ||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | ||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |