mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
Add action to automatically sync master to dev when code is pushed to master
Add in a release.yml to ignore github-actions author when auto-generating release notes Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
3
.github/release.yml
vendored
3
.github/release.yml
vendored
@@ -1,6 +1,7 @@
|
|||||||
changelog:
|
changelog:
|
||||||
exclude:
|
exclude:
|
||||||
labels:
|
labels:
|
||||||
- ignore-for-release
|
- internal
|
||||||
authors:
|
authors:
|
||||||
- dependabot
|
- dependabot
|
||||||
|
- github-actions
|
||||||
|
|||||||
28
.github/workflows/sync-back-to-dev.yml
vendored
Normal file
28
.github/workflows/sync-back-to-dev.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
name: Sync Back to Development
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync-branches:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Syncing branches
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Opening pull request
|
||||||
|
id: pull
|
||||||
|
uses: tretuna/sync-branches@1.4.0
|
||||||
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
FROM_BRANCH: 'master'
|
||||||
|
TO_BRANCH: 'devel'
|
||||||
|
CONTENT_COMPARISON: true
|
||||||
|
- name: Label the pull request to ignore for release note generation
|
||||||
|
uses: actions-ecosystem/action-add-labels@v1
|
||||||
|
with:
|
||||||
|
labels: internal
|
||||||
|
repo: ${{ github.repository }}
|
||||||
|
number: ${{ steps.pull.outputs.PULL_REQUEST_NUMBER }}
|
||||||
Reference in New Issue
Block a user