Merge pull request #8 from alterNERDtive/feature/workflows

This commit is contained in:
alterNERDtive 2022-07-14 00:50:25 +02:00 committed by GitHub
commit 0ecc4fe879
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 }}