added release / auto pull request workflows

This commit is contained in:
alterNERDtive 2022-07-14 00:41:17 +02:00
parent ab9239c810
commit 956c113f40
Signed by: alterNERDtive
GPG key ID: 547787A4FE6533F1
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,20 @@
name: Pull Request on Branch Push
on:
push:
branches-ignore:
- develop
- release
jobs:
auto-pull-request:
name: Open pull request
runs-on: ubuntu-latest
steps:
- name: pull-request-action
uses: vsoch/pull-request-action@1.0.19
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_BRANCH: "develop"
PULL_REQUEST_DRAFT: true
PASS_IF_EXISTS: true

22
.github/workflows/create-release.yaml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Create release on tag push
on:
push:
tags:
- 'release/*'
jobs:
build:
name: Create draft release
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Draft release
uses: ncipollo/release-action@v1
with:
bodyFile: "CHANGELOG.md"
draft: true
token: ${{ secrets.RELEASE_TOKEN }}